test: update golden files for ndjson migration

This commit is contained in:
Lewis Wynne 2026-02-11 00:04:43 +00:00
parent ddb75f1aeb
commit 32e7a79c71
14 changed files with 29 additions and 25 deletions

View file

@ -5,4 +5,4 @@ $ pda dump --glob a*
{"key":"a1","value":"1","encoding":"text"}
{"key":"a2","value":"2","encoding":"text"}
$ pda dump --glob c* --> FAIL
Error: No matches for pattern 'c*'
Error: cannot ls '@default': No matches for pattern 'c*'

View file

@ -1,2 +1,2 @@
$ pda get foobar --> FAIL
Error: cannot get 'foobar': Key not found
Error: cannot get 'foobar': No such key

View file

@ -5,10 +5,10 @@ $ pda get foobar --include-binary --run --secret --> FAIL
$ pda get foobar --run --> FAIL
$ pda get foobar --run --secret --> FAIL
$ pda get foobar --secret --> FAIL
Error: cannot get 'foobar': Key not found
Error: cannot get 'foobar': Key not found
Error: cannot get 'foobar': Key not found
Error: cannot get 'foobar': No such key
Error: cannot get 'foobar': No such key
Error: cannot get 'foobar': No such key
Error: unknown flag: --secret
Error: cannot get 'foobar': Key not found
Error: cannot get 'foobar': No such key
Error: unknown flag: --secret
Error: unknown flag: --secret

View file

@ -1,6 +1,6 @@
$ pda help dump
$ pda dump --help
Dump all key/value pairs as NDJSON
Export store as NDJSON (alias for list --format ndjson)
Usage:
pda export [STORE] [flags]
@ -13,7 +13,7 @@ Flags:
-g, --glob strings Filter keys with glob pattern (repeatable)
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
-h, --help help for export
Dump all key/value pairs as NDJSON
Export store as NDJSON (alias for list --format ndjson)
Usage:
pda export [STORE] [flags]

View file

@ -10,7 +10,8 @@ Aliases:
Flags:
-b, --binary include binary data in text output
-o, --format format output format (table|tsv|csv|markdown|html) (default table)
-e, --encoding string value encoding for ndjson format: auto, base64, or text (default "auto")
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
-g, --glob strings Filter keys with glob pattern (repeatable)
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
--header include header row
@ -28,7 +29,8 @@ Aliases:
Flags:
-b, --binary include binary data in text output
-o, --format format output format (table|tsv|csv|markdown|html) (default table)
-e, --encoding string value encoding for ndjson format: auto, base64, or text (default "auto")
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
-g, --glob strings Filter keys with glob pattern (repeatable)
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
--header include header row

View file

@ -22,7 +22,7 @@ Key commands:
set Set a key to a given value
Store commands:
export Dump all key/value pairs as NDJSON
export Export store as NDJSON (alias for list --format ndjson)
import Restore key/value pairs from an NDJSON dump
list-stores List all stores
remove-store Delete a store
@ -63,7 +63,7 @@ Key commands:
set Set a key to a given value
Store commands:
export Dump all key/value pairs as NDJSON
export Export store as NDJSON (alias for list --format ndjson)
import Restore key/value pairs from an NDJSON dump
list-stores List all stores
remove-store Delete a store

View file

@ -9,6 +9,7 @@ Aliases:
import, restore
Flags:
--drop Drop existing entries before restoring (full replace)
-f, --file string Path to an NDJSON dump (defaults to stdin)
-g, --glob strings Restore keys matching glob pattern (repeatable)
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
@ -23,6 +24,7 @@ Aliases:
import, restore
Flags:
--drop Drop existing entries before restoring (full replace)
-f, --file string Path to an NDJSON dump (defaults to stdin)
-g, --glob strings Restore keys matching glob pattern (repeatable)
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")

View file

@ -10,6 +10,6 @@ $ pda ls
foo 1
$ pda rm foo --glob "*"
$ pda get bar --> FAIL
Error: cannot get 'bar': Key not found
Error: cannot get 'bar': No such key
$ pda get foo --> FAIL
Error: cannot get 'foo': Key not found
Error: cannot get 'foo': No such key

View file

@ -3,8 +3,8 @@ $ pda set bar1 2
$ pda set bar2 3
$ pda rm foo --glob bar*
$ pda get foo --> FAIL
Error: cannot get 'foo': Key not found
Error: cannot get 'foo': No such key
$ pda get bar1 --> FAIL
Error: cannot get 'bar1': Key not found
Error: cannot get 'bar1': No such key
$ pda get bar2 --> FAIL
Error: cannot get 'bar2': Key not found
Error: cannot get 'bar2': No such key

View file

@ -3,8 +3,8 @@ $ pda set a2 2
$ pda set b1 3
$ pda rm --glob a*
$ pda get a1 --> FAIL
Error: cannot get 'a1': Key not found
Error: cannot get 'a1': No such key. Did you mean 'b1'?
$ pda get a2 --> FAIL
Error: cannot get 'a2': Key not found
Error: cannot get 'a2': No such key
$ pda get b1
3

View file

@ -2,6 +2,6 @@ $ pda set a 1
$ pda set b 2
$ pda rm a b
$ pda get a --> FAIL
Error: cannot get 'a': Key not found
Error: cannot get 'a': No such key
$ pda get b --> FAIL
Error: cannot get 'b': Key not found
Error: cannot get 'b': No such key. Did you mean 'b1'?

View file

@ -10,6 +10,6 @@ $ pda get a1
$ pda get a2
2
$ pda get b1 --> FAIL
Error: cannot get 'b1': Key not found
Error: cannot get 'b1': No such key. Did you mean 'a1'?
$ pda restore --glob c* --file dumpfile --> FAIL
Error: cannot restore '@default': No matches for pattern 'c*'

View file

@ -21,7 +21,7 @@ Key commands:
set Set a key to a given value
Store commands:
export Dump all key/value pairs as NDJSON
export Export store as NDJSON (alias for list --format ndjson)
import Restore key/value pairs from an NDJSON dump
list-stores List all stores
remove-store Delete a store