refactor(branding?): swapped all references to db/dbs to store/stores
This commit is contained in:
parent
9467675715
commit
3d5a3f2aa1
27 changed files with 113 additions and 113 deletions
4
testdata/del-db__err__with__invalid_db.ct
vendored
4
testdata/del-db__err__with__invalid_db.ct
vendored
|
|
@ -1,2 +1,2 @@
|
|||
$ pda del-db foo/bar --> FAIL
|
||||
Error: cannot delete-db 'foo/bar': cannot parse db: bad db format, use DB or @DB
|
||||
$ pda del-store foo/bar --> FAIL
|
||||
Error: cannot delete-store 'foo/bar': cannot parse store: bad store format, use STORE or @STORE
|
||||
|
|
|
|||
2
testdata/get__err__with__invalid_db.ct
vendored
2
testdata/get__err__with__invalid_db.ct
vendored
|
|
@ -1,2 +1,2 @@
|
|||
$ pda get key@foo/bar --> FAIL
|
||||
Error: cannot get 'key@foo/bar': bad db format, use DB or @DB
|
||||
Error: cannot get 'key@foo/bar': bad store format, use STORE or @STORE
|
||||
|
|
|
|||
20
testdata/help__del-db__ok.ct
vendored
20
testdata/help__del-db__ok.ct
vendored
|
|
@ -1,24 +1,24 @@
|
|||
$ pda help del-db
|
||||
$ pda del-db --help
|
||||
Delete a database
|
||||
$ pda help del-store
|
||||
$ pda del-store --help
|
||||
Delete a store
|
||||
|
||||
Usage:
|
||||
pda del-db DB [flags]
|
||||
pda del-store STORE [flags]
|
||||
|
||||
Aliases:
|
||||
del-db, delete-db, rm-db, remove-db
|
||||
del-store, delete-store, rm-store, remove-store
|
||||
|
||||
Flags:
|
||||
-h, --help help for del-db
|
||||
-h, --help help for del-store
|
||||
-i, --interactive Prompt yes/no for each deletion
|
||||
Delete a database
|
||||
Delete a store
|
||||
|
||||
Usage:
|
||||
pda del-db DB [flags]
|
||||
pda del-store STORE [flags]
|
||||
|
||||
Aliases:
|
||||
del-db, delete-db, rm-db, remove-db
|
||||
del-store, delete-store, rm-store, remove-store
|
||||
|
||||
Flags:
|
||||
-h, --help help for del-db
|
||||
-h, --help help for del-store
|
||||
-i, --interactive Prompt yes/no for each deletion
|
||||
|
|
|
|||
4
testdata/help__del__ok.ct
vendored
4
testdata/help__del__ok.ct
vendored
|
|
@ -3,7 +3,7 @@ $ pda del --help
|
|||
Delete one or more keys
|
||||
|
||||
Usage:
|
||||
pda del KEY[@DB] [KEY[@DB] ...] [flags]
|
||||
pda del KEY[@STORE] [KEY[@STORE] ...] [flags]
|
||||
|
||||
Aliases:
|
||||
del, delete, rm, remove
|
||||
|
|
@ -16,7 +16,7 @@ Flags:
|
|||
Delete one or more keys
|
||||
|
||||
Usage:
|
||||
pda del KEY[@DB] [KEY[@DB] ...] [flags]
|
||||
pda del KEY[@STORE] [KEY[@STORE] ...] [flags]
|
||||
|
||||
Aliases:
|
||||
del, delete, rm, remove
|
||||
|
|
|
|||
4
testdata/help__dump__ok.ct
vendored
4
testdata/help__dump__ok.ct
vendored
|
|
@ -3,7 +3,7 @@ $ pda dump --help
|
|||
Dump all key/value pairs as NDJSON
|
||||
|
||||
Usage:
|
||||
pda dump [DB] [flags]
|
||||
pda dump [STORE] [flags]
|
||||
|
||||
Aliases:
|
||||
dump, export
|
||||
|
|
@ -17,7 +17,7 @@ Flags:
|
|||
Dump all key/value pairs as NDJSON
|
||||
|
||||
Usage:
|
||||
pda dump [DB] [flags]
|
||||
pda dump [STORE] [flags]
|
||||
|
||||
Aliases:
|
||||
dump, export
|
||||
|
|
|
|||
8
testdata/help__get__ok.ct
vendored
8
testdata/help__get__ok.ct
vendored
|
|
@ -1,6 +1,6 @@
|
|||
$ pda help get
|
||||
$ pda get --help
|
||||
Get the value of a key. Optionally specify a db.
|
||||
Get the value of a key. Optionally specify a store.
|
||||
|
||||
{{ .TEMPLATES }} can be filled by passing TEMPLATE=VALUE as an
|
||||
additional argument after the initial KEY being fetched.
|
||||
|
|
@ -10,7 +10,7 @@ For example:
|
|||
pda get greeting NAME=World
|
||||
|
||||
Usage:
|
||||
pda get KEY[@DB] [flags]
|
||||
pda get KEY[@STORE] [flags]
|
||||
|
||||
Aliases:
|
||||
get, g
|
||||
|
|
@ -21,7 +21,7 @@ Flags:
|
|||
--no-template directly output template syntax
|
||||
-c, --run execute the result as a shell command
|
||||
--secret display values marked as secret
|
||||
Get the value of a key. Optionally specify a db.
|
||||
Get the value of a key. Optionally specify a store.
|
||||
|
||||
{{ .TEMPLATES }} can be filled by passing TEMPLATE=VALUE as an
|
||||
additional argument after the initial KEY being fetched.
|
||||
|
|
@ -31,7 +31,7 @@ For example:
|
|||
pda get greeting NAME=World
|
||||
|
||||
Usage:
|
||||
pda get KEY[@DB] [flags]
|
||||
pda get KEY[@STORE] [flags]
|
||||
|
||||
Aliases:
|
||||
get, g
|
||||
|
|
|
|||
20
testdata/help__list-dbs__ok.ct
vendored
20
testdata/help__list-dbs__ok.ct
vendored
|
|
@ -1,22 +1,22 @@
|
|||
$ pda help list-dbs
|
||||
$ pda list-dbs --help
|
||||
List all databases
|
||||
$ pda help list-stores
|
||||
$ pda list-stores --help
|
||||
List all stores
|
||||
|
||||
Usage:
|
||||
pda list-dbs [flags]
|
||||
pda list-stores [flags]
|
||||
|
||||
Aliases:
|
||||
list-dbs, ls-dbs, lsd
|
||||
list-stores, ls-stores, lsd
|
||||
|
||||
Flags:
|
||||
-h, --help help for list-dbs
|
||||
List all databases
|
||||
-h, --help help for list-stores
|
||||
List all stores
|
||||
|
||||
Usage:
|
||||
pda list-dbs [flags]
|
||||
pda list-stores [flags]
|
||||
|
||||
Aliases:
|
||||
list-dbs, ls-dbs, lsd
|
||||
list-stores, ls-stores, lsd
|
||||
|
||||
Flags:
|
||||
-h, --help help for list-dbs
|
||||
-h, --help help for list-stores
|
||||
|
|
|
|||
8
testdata/help__list__ok.ct
vendored
8
testdata/help__list__ok.ct
vendored
|
|
@ -1,9 +1,9 @@
|
|||
$ pda help list
|
||||
$ pda list --help
|
||||
List the contents of a database
|
||||
List the contents of a store
|
||||
|
||||
Usage:
|
||||
pda list [DB] [flags]
|
||||
pda list [STORE] [flags]
|
||||
|
||||
Aliases:
|
||||
list, ls
|
||||
|
|
@ -19,10 +19,10 @@ Flags:
|
|||
--no-values suppress the value column
|
||||
-S, --secret display values marked as secret
|
||||
-t, --ttl append a TTL column when entries expire
|
||||
List the contents of a database
|
||||
List the contents of a store
|
||||
|
||||
Usage:
|
||||
pda list [DB] [flags]
|
||||
pda list [STORE] [flags]
|
||||
|
||||
Aliases:
|
||||
list, ls
|
||||
|
|
|
|||
12
testdata/help__ok.ct
vendored
12
testdata/help__ok.ct
vendored
|
|
@ -16,14 +16,14 @@ Available Commands:
|
|||
completion Generate the autocompletion script for the specified shell
|
||||
cp Make a copy of a key
|
||||
del Delete one or more keys
|
||||
del-db Delete a database
|
||||
del-store Delete a store
|
||||
dump Dump all key/value pairs as NDJSON
|
||||
get Get the value of a key
|
||||
git Run any arbitrary command. Use with caution.
|
||||
help Help about any command
|
||||
init Initialise pda! version control
|
||||
list List the contents of a database
|
||||
list-dbs List all databases
|
||||
list List the contents of a store
|
||||
list-stores List all stores
|
||||
mv Move a key
|
||||
restore Restore key/value pairs from an NDJSON dump
|
||||
set Set a key to a given value
|
||||
|
|
@ -50,14 +50,14 @@ Available Commands:
|
|||
completion Generate the autocompletion script for the specified shell
|
||||
cp Make a copy of a key
|
||||
del Delete one or more keys
|
||||
del-db Delete a database
|
||||
del-store Delete a store
|
||||
dump Dump all key/value pairs as NDJSON
|
||||
get Get the value of a key
|
||||
git Run any arbitrary command. Use with caution.
|
||||
help Help about any command
|
||||
init Initialise pda! version control
|
||||
list List the contents of a database
|
||||
list-dbs List all databases
|
||||
list List the contents of a store
|
||||
list-stores List all stores
|
||||
mv Move a key
|
||||
restore Restore key/value pairs from an NDJSON dump
|
||||
set Set a key to a given value
|
||||
|
|
|
|||
4
testdata/help__restore__ok.ct
vendored
4
testdata/help__restore__ok.ct
vendored
|
|
@ -3,7 +3,7 @@ $ pda restore --help
|
|||
Restore key/value pairs from an NDJSON dump
|
||||
|
||||
Usage:
|
||||
pda restore [DB] [flags]
|
||||
pda restore [STORE] [flags]
|
||||
|
||||
Aliases:
|
||||
restore, import
|
||||
|
|
@ -17,7 +17,7 @@ Flags:
|
|||
Restore key/value pairs from an NDJSON dump
|
||||
|
||||
Usage:
|
||||
pda restore [DB] [flags]
|
||||
pda restore [STORE] [flags]
|
||||
|
||||
Aliases:
|
||||
restore, import
|
||||
|
|
|
|||
8
testdata/help__set__ok.ct
vendored
8
testdata/help__set__ok.ct
vendored
|
|
@ -1,6 +1,6 @@
|
|||
$ pda help set
|
||||
$ pda set --help
|
||||
Set a key to a given value or stdin. Optionally specify a db.
|
||||
Set a key to a given value or stdin. Optionally specify a store.
|
||||
|
||||
PDA supports parsing Go templates. Actions are delimited with {{ }}.
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ For example:
|
|||
'{{ enum .NAME "Alice" "Bob" }}' allows only NAME=Alice or NAME=Bob.
|
||||
|
||||
Usage:
|
||||
pda set KEY[@DB] [VALUE] [flags]
|
||||
pda set KEY[@STORE] [VALUE] [flags]
|
||||
|
||||
Aliases:
|
||||
set, s
|
||||
|
|
@ -22,7 +22,7 @@ Flags:
|
|||
-i, --interactive Prompt before overwriting an existing key
|
||||
--secret Mark the stored value as a secret
|
||||
-t, --ttl duration Expire the key after the provided duration (e.g. 24h, 30m)
|
||||
Set a key to a given value or stdin. Optionally specify a db.
|
||||
Set a key to a given value or stdin. Optionally specify a store.
|
||||
|
||||
PDA supports parsing Go templates. Actions are delimited with {{ }}.
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ For example:
|
|||
'{{ enum .NAME "Alice" "Bob" }}' allows only NAME=Alice or NAME=Bob.
|
||||
|
||||
Usage:
|
||||
pda set KEY[@DB] [VALUE] [flags]
|
||||
pda set KEY[@STORE] [VALUE] [flags]
|
||||
|
||||
Aliases:
|
||||
set, s
|
||||
|
|
|
|||
2
testdata/list__err__with__invalid_db.ct
vendored
2
testdata/list__err__with__invalid_db.ct
vendored
|
|
@ -1,2 +1,2 @@
|
|||
$ pda ls foo/bar --> FAIL
|
||||
Error: cannot ls 'foo/bar': cannot parse db: bad db format, use DB or @DB
|
||||
Error: cannot ls 'foo/bar': cannot parse store: bad store format, use STORE or @STORE
|
||||
|
|
|
|||
6
testdata/root__ok.ct
vendored
6
testdata/root__ok.ct
vendored
|
|
@ -15,14 +15,14 @@ Available Commands:
|
|||
completion Generate the autocompletion script for the specified shell
|
||||
cp Make a copy of a key
|
||||
del Delete one or more keys
|
||||
del-db Delete a database
|
||||
del-store Delete a store
|
||||
dump Dump all key/value pairs as NDJSON
|
||||
get Get the value of a key
|
||||
git Run any arbitrary command. Use with caution.
|
||||
help Help about any command
|
||||
init Initialise pda! version control
|
||||
list List the contents of a database
|
||||
list-dbs List all databases
|
||||
list List the contents of a store
|
||||
list-stores List all stores
|
||||
mv Move a key
|
||||
restore Restore key/value pairs from an NDJSON dump
|
||||
set Set a key to a given value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue