spectre.console
CommandLineUtils
Our great sponsors
spectre.console | CommandLineUtils | |
---|---|---|
24 | 9 | |
8,443 | 2,151 | |
3.9% | - | |
8.5 | 4.6 | |
2 days ago | 12 days ago | |
C# | C# | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
spectre.console
-
Harlequin: SQL IDE for Your Terminal
I like this one for .NET https://github.com/spectreconsole/spectre.console which I found in this list https://github.com/shadawck/awesome-cli-frameworks.
-
Gentle introduction for generics (C#)
The following code sample (a console project) uses Spectre.Console NuGet package to provide easy methods for gathering user input like first and last name of type string or perhaps birth date for a DateOnly property.
-
Dotnet.World.News(Wednesday, September, 20, 2023)
🔴 [spectre.console] A .NET library that makes it easier to create beautiful, cross platform, console applications.
-
spectre.console VS FluentConsole.Net - a user suggested alternative
2 projects | 3 Jun 2023
- How do you write something without having to use Console.SetCursorPosition or clearing the entire screen?
-
What your hidden nuget gems ?
https://github.com/spectreconsole/spectre.console for doing pretty Cli applications
-
What are you working on? (2023-02)
A friend and me have been working on an opinionated wrapper around the popular Spectre.Console. We call it SpectreCoff (Spectre.Console for F#).
-
SQL-Server: Computed columns with Ef Core
Spectre.Console for enhanced console writting.
-
EF Power Tools tutorial
Add the NuGet package Spectre.Console to the project
-
Console applications in C#
By using open source library like Spectre.Console creating useful console applications easy. Spectre.Console also makes it easy to create dotnet tools, see documentation and check out their GitHub repository.
CommandLineUtils
- Best way to build a console app with command line parser and dependency injection?
- What's your favorite command line arg parser?
-
Writing tests for CLI tool
I want to test how my tools generated files and folders in the destination with different arguments passed to the program. However, in my old code, I put all the logic of working with arguments in the static int main( string[] args) function. I could not use Interface and Dependency injection to mock the CLI tools because CommandLineUtils does not have an interface library. Luckily, I found this guidance from the owner of CommandLineUtils, and he advised that "Split the command-line argument parser and application execution into separate class structures" to test various options programmatically. It is a great suggestion, and I rewrote my program by adding class CommandLineOptions and adding logic to class Generator to make it works with CommandLineOptions. I can kill two birds with one stone by this change: code refactoring and writing better tests. Another problem I had was my folder structure. Before, I put the project's sln file, .git file , and src files in the root of the folder. However, when I added a new test project for Shinny-SSG, I had it outside my git folder, and it would be impossible to commit the change and put it in my remote repository. To resolve this, I had to change my folder structure to this:
- C# equivalent to Pythons cmd module?
-
Automatic .NET Versioning Tool
Thanks to https://github.com/natemcmaster/CommandLineUtils for supplying a lot of the command structures. If you're interested in creating your own dotnet tool, this is highly recommended.
What are some alternatives?
Gui.cs - Cross Platform Terminal UI toolkit for .NET
Command Line Parser - The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support
Console Framework - Cross-platform toolkit for easy development of TUI applications.
Cocona - Micro-framework for .NET console application. Cocona makes it easy and fast to build console applications on .NET.
command-line-api - Command line parsing, invocation, and rendering of terminal output.
CliFx - Class-first framework for building command-line interfaces
Colorful.Console - Style your .NET console output!
interactive - .NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
CommandDotNet - A modern framework for building modern CLI apps
CliWrap - Library for running command-line processes