| | | 1 | | using System.ComponentModel; |
| | | 2 | | using Spectre.Console; |
| | | 3 | | using Spectre.Console.Cli; |
| | | 4 | | |
| | | 5 | | namespace Orchestrator.Commands.Observability.SyncDataset; |
| | | 6 | | |
| | | 7 | | public sealed class SyncDatasetSettings : CommandSettings |
| | | 8 | | { |
| | | 9 | | [CommandOption("--input")] |
| | | 10 | | [Description("Path to the exported dataset artifact JSON file")] |
| | 1 | 11 | | public string InputPath { get; set; } = string.Empty; |
| | | 12 | | |
| | | 13 | | [CommandOption("--dataset-name")] |
| | | 14 | | [Description("Optional hosted dataset name override")] |
| | | 15 | | public string? DatasetName { get; set; } |
| | | 16 | | |
| | | 17 | | [CommandOption("--dry-run")] |
| | | 18 | | [Description("Validate the artifact and print a summary without calling Langfuse")] |
| | | 19 | | [DefaultValue(false)] |
| | | 20 | | public bool DryRun { get; set; } |
| | | 21 | | |
| | | 22 | | public override ValidationResult Validate() |
| | | 23 | | { |
| | 1 | 24 | | if (string.IsNullOrWhiteSpace(InputPath)) |
| | | 25 | | { |
| | 0 | 26 | | return ValidationResult.Error("--input is required"); |
| | | 27 | | } |
| | | 28 | | |
| | 1 | 29 | | return ValidationResult.Success(); |
| | | 30 | | } |
| | | 31 | | } |