Building intuitive command-line interfaces in .NET [eng]
The cross-platform story for .NET continues. More and more tooling uses a command-line interface to make it easy to execute complex tasks from a script or console. Microsoft has invested in this area for their own tooling, such as the dotnet CLI or project Tye. You can benefit from their efforts by using System.CommandLine to build your own CLI or parametrize your application startup with arguments and options.
The Microsoft .NET libraries hold a number of great packages to create intuitive CLIs, with commands that have features such as suggestions with tab-completion and typocorrections.
In this session you will learn how to implement commands, with arguments and options, and leverage the build-in functionality such as binding, validation, middle-ware, command-hierarchies, parsing and much more. We are going to cover practical examples and use-cases, plus tips and tricks for efficient development and debugging.
After this session you can are ready to go and build CLIs for your own .NET applications and tooling with minimal effort.
- Has been involved in application development since the late nineties.
- Worked as a lead developer and architect at large enterprises and small companies.
- He has received the Microsoft MVP award for Visual Studio and Development Technologies 12 times.
- He spends his time teaching other developers the details of the Microsoft development platform and frameworks.
- Twitter, GitHub