test(help): OK test cases

This commit is contained in:
Lewis Wynne 2025-11-20 14:40:10 +00:00
parent 2e50d4392f
commit 0ade5faec9
10 changed files with 320 additions and 0 deletions

44
testdata/help__get__ok.ct vendored Normal file
View file

@ -0,0 +1,44 @@
$ pda help get
$ pda get --help
Get a value for a key. Optionally specify a db.
{{ .TEMPLATES }} can be filled by passing TEMPLATE=VALUE as an
additional argument after the initial KEY being fetched.
For example:
pda set greeting 'Hello, {{ .NAME }}!'
pda get greeting NAME=World
Usage:
pda get KEY[@DB] [flags]
Aliases:
get, g
Flags:
-h, --help help for get
-b, --include-binary include binary data in text output
--no-template directly output template syntax
-c, --run execute the result as a shell command
--secret display values marked as secret
Get a value for a key. Optionally specify a db.
{{ .TEMPLATES }} can be filled by passing TEMPLATE=VALUE as an
additional argument after the initial KEY being fetched.
For example:
pda set greeting 'Hello, {{ .NAME }}!'
pda get greeting NAME=World
Usage:
pda get KEY[@DB] [flags]
Aliases:
get, g
Flags:
-h, --help help for get
-b, --include-binary include binary data in text output
--no-template directly output template syntax
-c, --run execute the result as a shell command
--secret display values marked as secret