test(get): OK with flags
This commit is contained in:
parent
1bff9a7c50
commit
e710501d91
6 changed files with 30 additions and 0 deletions
3
testdata/get__ok__with__binary.ct
vendored
Normal file
3
testdata/get__ok__with__binary.ct
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ pda set a b
|
||||
$ pda get a --include-binary
|
||||
b
|
||||
6
testdata/get__ok__with__binary_run.ct
vendored
Normal file
6
testdata/get__ok__with__binary_run.ct
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
$ pda set foo bar
|
||||
$ pda get foo --include-binary --run
|
||||
fish: Unknown command: bar
|
||||
fish:
|
||||
bar
|
||||
^~^
|
||||
6
testdata/get__ok__with__binary_run_secret.ct
vendored
Normal file
6
testdata/get__ok__with__binary_run_secret.ct
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
$ pda set foo bar
|
||||
$ pda get foo --include-binary --run --secret
|
||||
fish: Unknown command: bar
|
||||
fish:
|
||||
bar
|
||||
^~^
|
||||
6
testdata/get__ok__with__run.ct
vendored
Normal file
6
testdata/get__ok__with__run.ct
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
$ fecho cmd echo hello
|
||||
$ pda set a < cmd
|
||||
$ pda get a
|
||||
echo hello
|
||||
$ pda get a --run
|
||||
hello
|
||||
6
testdata/get__ok__with__run_secret.ct
vendored
Normal file
6
testdata/get__ok__with__run_secret.ct
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
$ fecho cmd echo hello
|
||||
$ pda set a < cmd
|
||||
$ pda get a
|
||||
echo hello
|
||||
$ pda get a --run --secret
|
||||
hello
|
||||
3
testdata/get__ok__with__secret.ct
vendored
Normal file
3
testdata/get__ok__with__secret.ct
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ pda set foo bar
|
||||
$ pda get foo --secret
|
||||
bar
|
||||
Loading…
Add table
Add a link
Reference in a new issue