command-line-api
command-line-api copied to clipboard
Command line parsing, invocation, and rendering of terminal output.
As described in , if you register a command-line executable in one directory and then try to use tab completion via `dotnet suggest` on an identically-named executable in another directory,...
The output of `dotnet-suggest register --help` describes this option: ``` --suggestion-command The command to invoke to retrieve suggestions ``` However, the option has no effect. The feature was removed in...
RegisterWithDotnetSuggest() uses a sentinel file and effectively only (tries to) register once. A good thing in itself, but if the user installs `dotnet-suggest` *after* the System.CommandLine application, then the registration...
2.0.0-beta4.22272.1 Must add this now - was that intended? public int Invoke(InvocationContext context) => throw new NotImplementedException();
I was implementing a [CompletionDelegate](https://docs.microsoft.com/dotnet/api/system.commandline.completions.completiondelegate) in my command-line application. That returns `IEnumerable` so my completion method needs to call the [CompletionItem constructor](https://docs.microsoft.com/en-us/dotnet/api/system.commandline.completions.completionitem.-ctor#system-commandline-completions-completionitem-ctor(system-string-system-string-system-string-system-string-system-string-system-string)). This constructor takes a `string kind = "Value"`...
The `[debug]` directive allowed for a consistent way to attach a debugger and stop on a breakpoint in an application's startup code. We weren't satisfied with the security of the...
Currently if I don't want to show completions in the help text, I have to ressort to this method to detect if that was the help that called my completions...
I'm trying to read raw JSON text as an option value, but no luck finding an effective way For example: ``` c# [Theory] [InlineData(@"--raw {""Id"":1,""Name"":""Test""}")] [InlineData(@"--raw {""""Id"""":1,""""Name"""":""""Test""""}")] [InlineData(@"--raw '{""Id"":1,""Name"":""Test""}'")] public...
Fixes #1760 - Enable nullable reference types for Hosting - Renaming `commandline` => `commandLine` to fix typo - Remove unnecessary `ToList` for configuration extension