using System.ComponentModel; using Spectre.Console.Cli; namespace Snapp.Cli.Commands; public class DebugCommand : AsyncCommand { public class Settings : CommandSettings { [CommandArgument(1, "")] [Description("Gimme some text to echo.")] public string? EchoText { get; set; } } public override async Task ExecuteAsync(CommandContext context, Settings settings) { Console.WriteLine($"Echoing: {settings.EchoText}"); return await Task.FromResult(3); } }