https://github.com/aimenux/systemcommandlinedemo
Exploring ways of using System.CommandLine to build CLI tools
https://github.com/aimenux/systemcommandlinedemo
net60 system-commandline vs22
Last synced: 2 months ago
JSON representation
Exploring ways of using System.CommandLine to build CLI tools
- Host: GitHub
- URL: https://github.com/aimenux/systemcommandlinedemo
- Owner: aimenux
- License: other
- Created: 2021-11-23T11:17:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-03T21:42:54.000Z (about 1 year ago)
- Last Synced: 2025-06-04T06:07:13.219Z (about 1 year ago)
- Topics: net60, system-commandline, vs22
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/aimenux/SystemCommandLineDemo/actions/workflows/ci.yml)
# SystemCommandLineDemo
```
Exploring ways of using System.CommandLine to build CLI tools
```
In this repo, i m exploring various ways in order to build a simple cli tool based on [System.CommandLine](https://github.com/dotnet/command-line-api).
>
> :one: straightforward way
> - pros : simplicity
> - cons : verbosity
>
> :two: fluent way
> - pros : discoverability
> - cons : encapsulation
>
> :three: poco way
> - pros : encapsulation
> - cons : performance (use of reflection)
To run code in debug or release mode, type the following commands in your favorite terminal :
> - `.\Way.exe Upper [InputText]`
> - `.\Way.exe Lower [InputText]`
>
**`Tools`** : vs22, net 6.0, command-line