test(bonfire): goldens for list, help and errors
- list, list --all, list --format=json and an --ansi styled list (D-13, D-16)
- admin:token:create help and a passthrough help; help <cmd> equals --help (D-14)
- error blocks: hint with {bin}, unknown command, -v chain on stderr (D-18)
- CheckDocs gaps in order and sorted; the version header and BuildVersion
- goldens render with color detection cleared; -update rewrites them
This commit is contained in:
23
modules/bonfire/testdata/help_passthrough.golden
vendored
Normal file
23
modules/bonfire/testdata/help_passthrough.golden
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
Description:
|
||||
Run the bundled tool with its own arguments
|
||||
|
||||
Usage:
|
||||
tool:exec [args] [options] [--] <args...>
|
||||
|
||||
Arguments:
|
||||
args The tool's arguments
|
||||
|
||||
Global options:
|
||||
-h, --help Display help for the given command
|
||||
-q, --quiet Do not output any message
|
||||
-v|vv|vvv Increase verbosity
|
||||
--ansi|no-ansi Force (or disable) ANSI output
|
||||
-n, --no-interaction Do not ask any interactive question
|
||||
--env The environment the command runs under
|
||||
|
||||
Help:
|
||||
Everything after the command name reaches the tool unchanged, global flags included.
|
||||
|
||||
Examples:
|
||||
# The tool's own version
|
||||
bin/acme tool:exec --version
|
||||
Reference in New Issue
Block a user