ConsoleAppFramework
ConsoleAppFramework copied to clipboard
Micro-framework for console applications to building CLI tools/Daemon/Batch for .NET, C#.
For declaring some command like this `[Command("run", "Run commandlet.")] public async Task RunCommandlet([Option(0)] string commandlet, [Option(1)] params string[] parameters)` if last indexed parameter is params then it will accept all...
The [documentation](https://github.com/Cysharp/ConsoleAppFramework#filter) specifies⬇️ > // Filter is instantiated by DI so you can get parameter by constructor injection. But only shows how to add global filters where the instance is...
Here is my case. I am writing an app which need to accept parameter switches for another app it is using. So for example I am trying to call my...
Allow multiple command line arguments with the same name to bind to an array parameter. This would avoid separating on comma. `public void Command(string[] name)` `my-cli command —name Foo —name...
implementation of #79 proposal
## Proposal Change behaviour of `ConsoleAppEngine.TryGetInvokeArguments` method to always handle values starting with dashes as parameter names but not values. In this case it would be required to pass value...
Updated .net version and nuget package references.
## tl;dr; Replace create-release with `Cysharp/Actions/.github/workflows/create-release.yaml`. This brings central managed release flow control. see: https://github.com/Cysharp/ConsoleAppFramework/actions/runs/7813660715
Removed BindingFlags.DeclaredOnly from generic add methods and changed DeclaringType to ReflectedType in ConsoleAppEngine. This allows the use of command classes that inherit their commands form a parent class. (last one...
Based on the discussion in #123. I have moved to using an app-based method to set the display of subcommands to : ```csharp app.SubcommandHelp(DisplayType.Default); ``` I want this PR to...