command-line-api
command-line-api copied to clipboard
Command line parsing, invocation, and rendering of terminal output.
The existing middleware pipeline has a few challenges for people trying to offer flexible extension points. Easy extensibility seems the goal of any routing pipeline. The goals of this proposal...
It would be desirable for all flavors (previously referred to as app models) to use the same exception handling. Consistent display would be nice, but consistent cancellation handling seems the...
What is the best way to add a validator for option parse? Is "AddValidator" best here? How is to allow await statement inside validator logic that makes a db call...
I need an argument use for file creation or appending (_path_ parameter in `File.AppendAllText` function). As far as I know there are two functions available `LegalFileNamesOnly` and `LegalFilePathsOnly`. The problem...
### Description Trim away unneeded TFMs, and conditionalize away non-applicable TFMs for Linux source build. **Requires** https://github.com/dotnet/source-build/issues/3013. source-build net4* targeting elimination required https://github.com/dotnet/source-build/issues/2974 The purpose of this operation is twofold:...
Please add examples to the help text, per command. As done for [Spectre.Console](https://spectreconsole.net/cli/commands#configuring). (Examples are optional; they are specified in code, they aren't created dynamically.) e.g. `myapp foo --help` will...
Motivation: - Inside custom middleware, it may be desirable to understand relative order of symbols in the parsed command line (for e.g. in the case of several option types that...
### Description **This issue is dependent on https://github.com/dotnet/source-build/issues/2974 and is a placeholder for .NET 8 required work in product repositories.** Instructions for implementation will be updated once https://github.com/dotnet/source-build/issues/2974 but will...
### Overview Source-build works today by building a repository, gathering the versions of the outputs, and creating a property file with those versions. This property file is then fed to...
Let's have a root command with one int16 option ```csharp var root = new RootCommand("Root command description"); var tstopt = new Option("-t", "testing int16 option"); root.AddOption(tstopt); ``` If I use...