Lesson 1.2: Multiple, Default, and Hidden Commands

Having one command, like we did in our first lesson, is useful but limited. With Spectre.Console.Cli, we can define multiple commands, each with their own arguments and options, and each getting called when the user specifies that command in the command-line arguments. So let's take a look at defining multiple commands and a default command … Continue reading Lesson 1.2: Multiple, Default, and Hidden Commands

Lesson 1.1: Starting with Spectre.Console.Cli

I've been writing a lot of command-line apps to try out .NET Core and now .NET 5. There's always a lot of repeated code to setup the application, parse the command-line arguments, and then map those to operations performed by the program. I started researching some frameworks for building command-line interfaces (CLI) and there are … Continue reading Lesson 1.1: Starting with Spectre.Console.Cli