Initial commit

This commit is contained in:
Fergal Moran
2024-07-26 17:01:40 +01:00
commit 2daa52aa04
14 changed files with 362 additions and 0 deletions

17
Commands/DebugCommand.cs Normal file
View File

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