mirror of
https://github.com/fergalmoran/snapp-cli.git
synced 2025-12-22 10:00:52 +00:00
19 lines
539 B
C#
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);
|
|
}
|
|
}
|