DotNetConfig.CommandLine
Extensions to System.CommandLine to automatically read default values from .netconfig files. Usage: var root = new RootCommand { // child commands, arguments, options }.WithConfigurableDefaults(); The following heuristics are applied when providing default values: * Only arguments/options without a default value are processed. * Section matches root command name, subsection (dot-separated) for each additional nested command level (i.e. `[mytool "mycommand.myverb"]`). * Compatible arguments/options (same name/type) can be placed in ancestor section/subsection to affect default value of entire subtree. * All the types supported by System.CommandLine for multiple artity arguments and options are automatically populated: arrays, `IEnumerable{T}`, `ICollection{T}`, `IList{T}` and `List{T}`: .netconfig can provide multi-valued variables for those. * Numbers can be either `int` or `long`.
Activity
- Latest release
- 2y ago
- Total releases
- 7
- Cadence
- ~28 days
- Last 12 months
- 0
Details
- License
- MIT
- First release
- Apr 29, 2021
| Version | Released | |
|---|---|---|
1.2.0
minor
| ||
1.1.1
patch
| ||
1.1.0
minor
| ||
1.0.6
patch
| ||
1.0.5
patch
| ||
1.0.4
patch
| ||
1.0.3
initial
|