feat: splits --glob into --key and --value searches
This commit is contained in:
parent
1f4732823d
commit
5145816b0a
22 changed files with 275 additions and 188 deletions
22
testdata/help__restore__ok.ct
vendored
22
testdata/help__restore__ok.ct
vendored
|
|
@ -9,12 +9,11 @@ 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 '/-_.@: ')
|
||||
-h, --help help for import
|
||||
-i, --interactive Prompt before overwriting existing keys
|
||||
--drop Drop existing entries before restoring (full replace)
|
||||
-f, --file string Path to an NDJSON dump (defaults to stdin)
|
||||
-h, --help help for import
|
||||
-i, --interactive Prompt before overwriting existing keys
|
||||
-k, --key strings Restore keys matching glob pattern (repeatable)
|
||||
Restore key/value pairs from an NDJSON dump
|
||||
|
||||
Usage:
|
||||
|
|
@ -24,9 +23,8 @@ 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 '/-_.@: ')
|
||||
-h, --help help for import
|
||||
-i, --interactive Prompt before overwriting existing keys
|
||||
--drop Drop existing entries before restoring (full replace)
|
||||
-f, --file string Path to an NDJSON dump (defaults to stdin)
|
||||
-h, --help help for import
|
||||
-i, --interactive Prompt before overwriting existing keys
|
||||
-k, --key strings Restore keys matching glob pattern (repeatable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue