Files
snapp-cli/Commands/DebugCommand.cs
2024-07-26 18:23:09 +01:00

19 lines
539 B
C#

using System.ComponentModel;
using Snapp.Cli.Helpers;
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) {
Log.Debug($"Echoing: {settings.EchoText}");
return await Task.FromResult(3);
}
}