< Summary

Information
Class: Orchestrator.Commands.Operations.Verify.VerifySettings
Assembly: Orchestrator
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Operations/Verify/VerifySettings.cs
Line coverage
60%
Covered lines: 3
Uncovered lines: 2
Coverable lines: 5
Total lines: 64
Line coverage: 60%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Validate()100%1160%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Operations/Verify/VerifySettings.cs

#LineLine coverage
 1using System.ComponentModel;
 2using EHonda.KicktippAi.Core;
 3using Spectre.Console;
 4using Spectre.Console.Cli;
 5
 6namespace Orchestrator.Commands.Operations.Verify;
 7
 8public class VerifySettings : CommandSettings
 9{
 10    [CommandArgument(0, "<MODEL>")]
 11    [Description("The OpenAI model to verify predictions for")]
 12    public string? Model { get; set; }
 13
 14    [CommandOption("-c|--community")]
 15    [Description("The Kicktipp community to use (e.g., ehonda-test-buli)")]
 16    public required string Community { get; set; }
 17
 18    [CommandOption("--community-context")]
 19    [Description("The community context for filtering predictions (defaults to community name if not specified)")]
 20    public string? CommunityContext { get; set; }
 21
 22    [CommandOption("--competition")]
 23    [Description("Competition identifier (defaults from community, e.g., fifa-world-cup-2026 for ehonda-dev-wm26)")]
 24    public string? Competition { get; set; }
 25
 26    [CommandOption("--reasoning-effort")]
 27    [Description("Optional OpenAI reasoning effort (none, minimal, low, medium, high, xhigh)")]
 28    public string? ReasoningEffort { get; set; }
 29
 30    [CommandOption("-v|--verbose")]
 31    [Description("Enable verbose output to show detailed information")]
 32    [DefaultValue(false)]
 33    public bool Verbose { get; set; }
 34
 35    [CommandOption("--agent")]
 36    [Description("Agent mode - hide prediction details from output (for automated environments)")]
 37    [DefaultValue(false)]
 38    public bool Agent { get; set; }
 39
 40    [CommandOption("--init-matchday")]
 41    [Description("Init matchday mode - return error when no predictions exist to trigger initial prediction workflow")]
 42    [DefaultValue(false)]
 43    public bool InitMatchday { get; set; }
 44
 45    [CommandOption("--check-outdated")]
 46    [Description("Check if predictions are outdated based on context document changes")]
 47    [DefaultValue(false)]
 48    public bool CheckOutdated { get; set; }
 49
 50    public override ValidationResult Validate()
 51    {
 152        if (string.IsNullOrWhiteSpace(Model))
 53        {
 054            return ValidationResult.Error("MODEL is required");
 55        }
 56
 157        if (!PredictionModelConfig.IsValidReasoningEffort(ReasoningEffort))
 58        {
 059            return ValidationResult.Error("--reasoning-effort must be one of: none, minimal, low, medium, high, xhigh");
 60        }
 61
 162        return ValidationResult.Success();
 63    }
 64}

Methods/Properties

Validate()