Tim Waalewijn
2e5d18fa78
Added the ability to hide CommandOptions. ( #642 )
...
CommandOptions now has an IsHidden property that, when set to true, will cause the option to be hidden from the following cases:
- Help text using `-h|--help`
- Xml representations generated with the `cli xml` command
- Diagnostics displayed with the `cli explain` command
Hidden options can still be outputted with `cli explain` using the `--hidden` option that is also used to display hidden commands.
Fixes #631
2021-11-29 23:16:54 +01:00
Cédric Luthi
8fed3bc575
Fix type conversion in the default pair deconstructor implementation ( #618 )
...
The code using the TypeConverter was written backwards (using `ConvertTo` instead of `ConvertFrom` and would thus throw an exception.
2021-11-22 15:07:58 +01:00
Cédric Luthi
19eb273813
Fix typo in PairDeconstructor class name
...
PairDeconstuctor → PairDeconstructor (was missing an 'r')
Keeping `PairDeconstuctor` and marking it as obsolete since it's a public type.
2021-11-14 10:36:16 +01:00
Nils Andresen
48df9cf68b
( #555 ) added TypeRegistrarBaseTests
...
as a very simple test harness to test implementations of
ITypeRegistrar / ITypeResolver
2021-11-14 01:19:27 +01:00
Nils Andresen
c5c1852fc3
( #606 ) added ExceptionHandler to ICommandAppSettings
...
So exceptions can be handled in Spectre.Console.Cli.
Also, some documentation was added.
2021-10-30 01:41:29 +02:00
Patrik Svensson
2a3763cdc7
Prove that remaining args works in strict mode
...
Closes #496
2021-10-05 09:34:08 -04:00
Nils Andresen
49e8a980a7
Removed the additional registration of ICommand
2021-09-18 23:19:34 +02:00
Patrik Svensson
e169df6303
Add support for manipulating individual table rows
...
Closes #500
2021-08-14 23:35:07 +02:00
Nils Andresen
6b5b31957c
Added a TypeRegistrar to CommandAppTester
...
exposed as a public property.
For convenience, and to keep the similarity to the real CommandApp
it is also available in the ctor of CommandAppTester.
2021-06-24 01:42:29 +02:00
Patrik Svensson
c9b178ac96
Moved analyzer tests to its own project
...
Also moves tests to `./test` which makes it possible
for all test projects to share the same .editorconfig
files and similar.
2021-06-23 22:47:12 +02:00