ConsoleAppFramework — Micro-framework for console applications, for C# .NET Core
Formely, I posted MicroBatchFramework — Cloud Native Batch Framework for C#, this new framework is renamed, evolved version of MicroBatchFramework.
ConsoleAppFramework is built on Microsoft.Extensions(.NET Generic Host)that covering Logging, Configuration, DI, etc. ConsoleAppFramework do parameter binding, method routing, lifecycle management etc. It is like pair of ASP.NET Core, ASP.NET Core is for Web, ConsoleAppFramework is for CLI.
And so similar concept in PHP, Laravel and Laravel Zero that is Micro-framework for console applications. Microsoft’s competitor of ConsoleAppFramework is dotnet/commandline-api, it has System.CommandLine.Hosting and System.CommandLine.DragonFruit that is similar functionally. But ConsoleAppFramework is more stable and high productivity.
SampleApp.exe -name “foo” -repeat 5.
Simply define a method and is automatically binded to the parameter.
You can define shorthand parameter and descriptions.
It can be shown by “help”
> SampleApp.exe help
Usage: SampleApp [options…]
-n, -name <String> name of send user. (Required)
-r, -repeat <Int32> repeat count. (Default: 3)
This looks good, similar as dotnet command format.
ConsoleAppFramework also can build daemon, multi batch application, web-interface, etc. Please see ReadMe for the detail.
ConsoleAppFramework helps there a good environment to more productivity, please try it.