Exploring ways of using Spectre.Console to build CLI tools
In this repo, i m exploring various ways in order to build a simple cli tool based on Spectre.Console.
1️⃣ basic way : commands metadata (name, description, etc.) are defined outside commands folder.
2️⃣ custom way : commands metadata (name, description, etc.) are defined inside commands folder.
To run code in debug or release mode, type the following commands in your favorite terminal :
dotnet run --project .\src\BasicWay\BasicWay.csproj math add [number1] [number2]
dotnet run --project .\src\CustomWay\CustomWay.csproj math add [number1] [number2]
dotnet run --project .\src\BasicWay\BasicWay.csproj path list [path] -e [extension]
dotnet run --project .\src\CustomWay\CustomWay.csproj path list [path] -e [extension]
Tools
: net 8.0, spectre.console.cli