CommandLineUtils
Gui.cs
CommandLineUtils | Gui.cs | |
---|---|---|
9 | 59 | |
2,171 | 9,131 | |
- | 0.9% | |
5.3 | 9.2 | |
about 1 month ago | 4 days ago | |
C# | C# | |
Apache License 2.0 | MIT License |
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.
CommandLineUtils
-
Enforcing command line arguments with CommandLineUtils?
The library doesn't support that format, here you can see that MultipleValues means for example "-o value1 -o value2" Options Support options with multiple values · Issue #311 · natemcmaster/CommandLineUtils · GitHub
-
How do I run a single .class file in C#?
You could roll your own with some command-line argument processing. You could write that yourself and use reflection, or for an example from a library I've used, example.
- Best way to build a console app with command line parser and dependency injection?
- Parsing the command line in the .NET 6 new console format?
- 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:
- Help with quite weird idea
- 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.
Gui.cs
- Forget MAUI; Get TUI! - C#'s best cross platform console UI toolkit ships first 2.0 alpha package (Terminal.Gui)
-
Hello everyone, I made a Windows 10/11 Multitool app with Winforms. I'm just gonna share some screenshots.
Thanks but I'm sticking with Terminal.Gui
-
Made a simple text based little game to re-learn c#
Used this neat library to handle the GUI gui-cs/Terminal.Gui: Cross Platform Terminal UI toolkit for .NET (github.com)
-
What your hidden nuget gems ?
Terminal.GUI - cross platform terminal UI for .NET: https://github.com/gui-cs/Terminal.Gui
-
Textual (TUI framework) widget gallery
Two I've used are Terminal.Gui for .net https://github.com/gui-cs/Terminal.Gui and BubbleTea for Go https://github.com/charmbracelet/bubbletea
-
UI framework for games on Linux with c#
In that case you can use console (https://github.com/gui-cs/Terminal.Gui) to make games.
-
Managing Powershell collections graphically
As you can see the tool is always integrated into the terminal because it has built on a cross platform UI toolkit based on a fantastic open source project called Terminal.Gui. Now you can select the objects by using space bar and than confirm the selection with enter. The result will be:
-
What python/C# GUI library would be best for my project?
C# - https://github.com/gui-cs/Terminal.Gui
-
c# native with a gui
Since you mentioned minimal GUI, have you thought of a TUI? I haven't spiked it out but I would guess Terminal.Gui would work with Native AOT
-
GTK support for macOS is being worked on for those who want to create applications for macOS.
I've had to resort to make TUIs with https://github.com/gui-cs/Terminal.Gui because there's no sane way to make a GUI app in Linux without a 300-files boilerplate or obscure languages.
What are some alternatives?
Command Line Parser - The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support
spectre.console - A .NET library that makes it easier to create beautiful console applications.
Fluent Command Line Parser - A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface
CsConsoleFormat - .NET C# library for advanced formatting of console output [Apache]
JustCli - Just a quick way to create your own command line tool
Power Args - The ultimate .NET Standard command line argument parser
Colorful.Console - Style your .NET console output!
Docopt - Port of docopt to .net
Sieve - ⚗️ Clean & extensible Sorting, Filtering, and Pagination for ASP.NET Core
Appccelerate - Command Line Parser - A simple command line parser with fluent definition API.