command-line-api
command-line-api copied to clipboard
Command line parsing, invocation, and rendering of terminal output.
The Powderhouse update will have significant breaking changes. The existing System.CommandLine will remain available in a preview state to help with the transition. This list is **not** complete. This is...
It would be better if it accepted an `Action` that would be invoked to set the variable as an optional parameter to the constructor. ``` new EnvironmentVariablesDirective((name, value) => ...);...
CLI authors will be able to retrieve values for symbols from the `ParseResult` or the `ValueSubsystem`. The `ValueSubsystem` is discussed in #2357, which focuses primarily on how default values are...
Edit: Updated to TryGetValue and other typos Default values could be part of the core parser layer or part of extensibility as a subsystem. This design proposes making default values...
This pull request updates the following dependencies [marker]: (Begin:272aed7a-a016-4fc1-8897-08d8446df6cf) ## From https://github.com/dotnet/arcade - **Subscription**: 272aed7a-a016-4fc1-8897-08d8446df6cf - **Build**: 20240308.4 - **Date Produced**: March 8, 2024 10:35:33 PM UTC - **Commit**: 052a4b9e7a9bdb9744c86c05665f1b46e4d59b15...
I am get error `Required command was not provided.` when running `MyApp.exe --as-service` with the following code _below_. ```csharp internal sealed class DefaultRootCommand : RootCommand { public DefaultRootCommand() : base("Description")...
I was using a BinderBase derived class in the SetHandler() function to convert several options into a complex type. Specifically, the options related to kafka configuration items and the binder...
We plan to remove global option handling in Powderhouse. We think it more appropriate to put the option on all the things it belongs on and helper methods to add...
It may be valuable to have a single `ValueResult`. This is a working document to help with that decision. A benefit is that binding and other calling code, including that...
One of our design challenges is handling directives. The .NET libraries will focus on Posix and Windows standards and expectations and directives are unique to System.CommandLine. They also solve an...