This is an MVVM presentation layer framework that helps you create a CLI (command line interface).
ConsoleTools.Commando.Setup.Autofac
- Note:
- The
ConsoleTools.Commando
package will be automatically included.
- The
Application application = ApplicationBuilder.Create()
.RegisterCommandsFrom(typeof(ReadCommand).Assembly) // Provide here the assembly containing your commands.
.Build();
await application.RunAsync(args);
[NamedCommand("read", Description = "Display the content of a text file.")]
internal class ReadCommand : ICommand
{
[NamedParameter("file", ShortName = 'f', Description = "The full path of the file.")]
public string FilePath { get; set; }
public Task Execute()
{
...
}
}
https://github.com/lastunicorn/ConsoleTools.Commando/discussions
I appreciate any opinion or suggestion:
- Did you feel the need for a specific feature?
- Did you like or dislike something?
- Do you have questions?
- etc...
I'm looking forward to hearing from you.
If you like my work and want to support me, you can buy me a coffee: