-
Notifications
You must be signed in to change notification settings - Fork 0
Add OpenCLI Specification Option for System.CommandLine #4
Copy link
Copy link
Open
Labels
changelog:addedAdd a new feature (SemVer:MINOR)Add a new feature (SemVer:MINOR)scope:introspectionThe CLI Introspection librariesThe CLI Introspection librariestype:featRequest/add a new feature (this correlates with MINOR in Semantic Versioning)Request/add a new feature (this correlates with MINOR in Semantic Versioning)
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
changelog:addedAdd a new feature (SemVer:MINOR)Add a new feature (SemVer:MINOR)scope:introspectionThe CLI Introspection librariesThe CLI Introspection librariestype:featRequest/add a new feature (this correlates with MINOR in Semantic Versioning)Request/add a new feature (this correlates with MINOR in Semantic Versioning)
Summary
Add
System.CommandLineOption for OpenCLI Specification via--open-clior--opencli.Remarks
The OpenCLI Specification is built-in to Spectre.Console.Cli through
exe cli opencliandexe --help-dump-opencli.See: https://spectreconsole.net/cli/reference/built-in-command-behaviors/#opencli-command
Features
Option<bool>toSystem.CommandLineapplicationsOption<bool>should not be recursive, to allow to JSONify only the RootCommandOption<bool>should be hidden, to not show in the help outputenumorstruct[Experimental]System.Text.Jsonto output the JSON representationpublicmembers<TargetFrameworks>for the LibraryC#,F#, andVisual BasicExample
See: https://opencli.org/examples
See also
System.CommandLinerepository: https://github.com/dotnet/command-line-apiSystem.CommandLinedocumentation: https://learn.microsoft.com/dotnet/standard/commandline/System.Text.Jsondocumentation: https://learn.microsoft.com/dotnet/standard/serialization/system-text-json/overviewSpectre.Console.Clirepository: https://github.com/spectreconsole/spectre.console.cli