CommandLineUtils
Sieve
CommandLineUtils | Sieve | |
---|---|---|
9 | 14 | |
2,171 | 1,143 | |
- | - | |
5.3 | 0.0 | |
about 1 month ago | 5 months ago | |
C# | C# | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
Sieve
-
Junction/association/Link Table VS Join ( Entity Framework Core )
Biarity/Sieve: ⚗️ Clean & extensible Sorting, Filtering, and Pagination for ASP.NET Core (github.com)
-
ASP.NET Core MVC Generic Repository only works with a specific Context. (Need help)
I´m trying out Sieve and the rip my app to pieces and use that instead.
-
Most flexible way to query data from database
Similar to Sieve
- API filtering, pagination and sorting
- How to add non mandatory EF Core Query Filters?
-
Why Microsoft is not pushing hard on OData in rescent .net versions?
https://github.com/Biarity/Sieve Sieve is a simple, clean, and extensible framework for .NET Core that adds sorting, filtering, and pagination functionality out of the box. Most common use case would be for serving ASP.NET Core GET queries.
-
Pagination with dynamic filtering and sorting
If you're looking for a library for a REST API, there really aren't very many good ones. I used Sieve as a starting point to write my own because it didn't support the filtering syntax I was required to use. I would definitely not recommend a new person write their own, however.
-
Clean Ways to Implement Large Filtering on .Net Core API
I also looked at Sieve: https://github.com/Biarity/Sieve but I'm not sure it is 100% hitting what I am wanting. Unless I am just a bork at the end of my day unable to read properly. Any direction in the right area would greatly be appreciated!
-
Extending IQueryable for very long and specific query
For complex queries like this, you don't have a ton of choices. You could use Sieve (https://github.com/Biarity/Sieve) in lieu of your current implementation. I use it specifically in situations to handle filtering/paging/sorting, not as a general way to access data. Most of the time I write an underlying DB view and hook that up to a keyless entity and allow Sieve to do the actual filtering.
-
Dynamically building Linq queries
If you're using EF, you can use https://github.com/Biarity/Sieve
What are some alternatives?
Command Line Parser - The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support
CliWrap - Library for running command-line processes
spectre.console - A .NET library that makes it easier to create beautiful console applications.
api-guidelines - Microsoft REST API Guidelines
Gui.cs - Cross Platform Terminal UI toolkit for .NET
Console Framework - Cross-platform toolkit for easy development of TUI applications.
Fluent Command Line Parser - A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface
ReadLine - A Pure C# GNU-Readline like library for .NET/.NET Core
JustCli - Just a quick way to create your own command line tool
NFlags - Simple yet powerfull library to made parsing CLI arguments easy. Library also allow to print usage help "out of box".
Colorful.Console - Style your .NET console output!
SharpNetSH - A simple netsh library for C#