| | | 1 | | using System.ComponentModel; |
| | | 2 | | using Spectre.Console.Cli; |
| | | 3 | | |
| | | 4 | | namespace Orchestrator.Commands.Operations.CollectContext; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Base settings for the collect-context command. |
| | | 8 | | /// </summary> |
| | | 9 | | public class CollectContextSettings : CommandSettings |
| | | 10 | | { |
| | | 11 | | } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Settings for the collect-context kicktipp subcommand. |
| | | 15 | | /// </summary> |
| | | 16 | | public class CollectContextKicktippSettings : CollectContextSettings |
| | | 17 | | { |
| | | 18 | | [CommandOption("--dry-run")] |
| | | 19 | | [Description("Show what would be saved without actually saving to database")] |
| | | 20 | | public bool DryRun { get; set; } |
| | | 21 | | |
| | | 22 | | [CommandOption("--match-outcomes-only")] |
| | | 23 | | [Description("Collect and persist match outcomes without updating other context documents")] |
| | | 24 | | public bool MatchOutcomesOnly { get; set; } |
| | | 25 | | |
| | | 26 | | [CommandOption("--community-context")] |
| | | 27 | | [Description("The community context (rules/scoring) to use")] |
| | | 28 | | public string CommunityContext { get; set; } = string.Empty; |
| | | 29 | | |
| | | 30 | | [CommandOption("--competition")] |
| | | 31 | | [Description("Competition identifier (defaults from community context, e.g., fifa-world-cup-2026 for ehonda-dev-wm26 |
| | | 32 | | public string? Competition { get; set; } |
| | | 33 | | |
| | | 34 | | [CommandOption("--matchdays")] |
| | | 35 | | [Description("Comma-separated Kicktipp matchday indexes to collect instead of only the current matchday")] |
| | | 36 | | public string? Matchdays { get; set; } |
| | | 37 | | |
| | | 38 | | [CommandOption("--verbose")] |
| | | 39 | | [Description("Enable verbose output")] |
| | | 40 | | public bool Verbose { get; set; } |
| | | 41 | | } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Settings for the collect-context fifa subcommand. |
| | | 45 | | /// </summary> |
| | | 46 | | public class CollectContextFifaSettings : CollectContextSettings |
| | | 47 | | { |
| | | 48 | | [CommandOption("--community-context")] |
| | | 49 | | [Description("The community context to upload FIFA ranking context for")] |
| | | 50 | | public string CommunityContext { get; set; } = string.Empty; |
| | | 51 | | |
| | | 52 | | [CommandOption("--competition")] |
| | | 53 | | [Description("Competition identifier (defaults from community context, e.g., fifa-world-cup-2026 for ehonda-dev-wm26 |
| | | 54 | | public string? Competition { get; set; } |
| | | 55 | | |
| | | 56 | | [CommandOption("--dry-run")] |
| | | 57 | | [Description("Show what would be saved without actually saving to database")] |
| | | 58 | | public bool DryRun { get; set; } |
| | | 59 | | |
| | | 60 | | [CommandOption("--verbose")] |
| | | 61 | | [Description("Enable verbose output")] |
| | | 62 | | public bool Verbose { get; set; } |
| | | 63 | | } |
| | | 64 | | |
| | | 65 | | /// <summary> |
| | | 66 | | /// Settings for the collect-context lineups subcommand. |
| | | 67 | | /// </summary> |
| | | 68 | | public class CollectContextLineupsSettings : CollectContextSettings |
| | | 69 | | { |
| | | 70 | | [CommandOption("--community-context")] |
| | | 71 | | [Description("The community context to upload WM26 lineup context for")] |
| | 1 | 72 | | public string CommunityContext { get; set; } = string.Empty; |
| | | 73 | | |
| | | 74 | | [CommandOption("--competition")] |
| | | 75 | | [Description("Competition identifier (defaults from community context, e.g., fifa-world-cup-2026 for ehonda-dev-wm26 |
| | | 76 | | public string? Competition { get; set; } |
| | | 77 | | |
| | | 78 | | [CommandOption("--seed")] |
| | | 79 | | [Description("Lineup seed CSV path")] |
| | 1 | 80 | | public string Seed { get; set; } = "data/wm26/lineups/lineups-seed.csv"; |
| | | 81 | | |
| | | 82 | | [CommandOption("--teams")] |
| | | 83 | | [Description("WM26 team manifest CSV path")] |
| | 1 | 84 | | public string Teams { get; set; } = "data/wm26/lineups/wm26-teams.csv"; |
| | | 85 | | |
| | | 86 | | [CommandOption("--duckdb-path")] |
| | | 87 | | [Description("Existing local transfermarkt-datasets DuckDB path; if omitted, the command refreshes the ignored cache |
| | | 88 | | public string? DuckDbPath { get; set; } |
| | | 89 | | |
| | | 90 | | [CommandOption("--dry-run")] |
| | | 91 | | [Description("Show what would be saved without actually saving to database")] |
| | | 92 | | public bool DryRun { get; set; } |
| | | 93 | | |
| | | 94 | | [CommandOption("--verbose")] |
| | | 95 | | [Description("Enable verbose output")] |
| | | 96 | | public bool Verbose { get; set; } |
| | | 97 | | } |