gh-gei
gh-gei copied to clipboard
[Spike] Create a PoC that shows how to leverage the new CommandLine changes
The System.CommandLine has had lots of changes since we started using it. Given the fact that the latest version (currently 2.0.0-beta4.22272.1) is closer to GA now since the CommandLine docs are now officially on Microsoft docs, we need to follow the latest guidelines and refactor our code base to reflect them.
Particularly we need to look at the following stuff and create a PoC to serve as a blueprint for using the CommandLine library:
- How to use the new DI approach.
- How to use the new argument binding approach given the fact that after the upgrade our current approach won't work.
- Use the
SetHandlermethod instead of usingCommandHandler.Create.
Resources
- System.CommandLine overview
- https://github.com/dotnet/command-line-api/issues/1750
- Announcing System.CommandLine 2.0 Beta 2 and the road to GA --> This is old but might still be useful since the new argument biding approach was explained there.