https://github.com/aimenux/spectreconsoleclidemo
Using spectre cli to build command line tools
https://github.com/aimenux/spectreconsoleclidemo
cli-app cli-tool console-app net80 serilog spectre-console
Last synced: 4 months ago
JSON representation
Using spectre cli to build command line tools
- Host: GitHub
- URL: https://github.com/aimenux/spectreconsoleclidemo
- Owner: aimenux
- License: mit
- Created: 2022-11-01T00:01:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T19:08:08.000Z (over 1 year ago)
- Last Synced: 2025-04-30T20:08:03.872Z (about 1 year ago)
- Topics: cli-app, cli-tool, console-app, net80, serilog, spectre-console
- Language: C#
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/aimenux/SpectreCliDemo/actions/workflows/ci.yml)
# SpectreConsoleCliDemo
```
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](https://spectreconsole.net/cli/).
>
> :one: basic way : commands metadata (name, description, etc.) are defined outside commands folder.
>
> :two: 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