refactor(branding?): swapped all references to db/dbs to store/stores

This commit is contained in:
Lewis Wynne 2025-12-23 09:07:45 +00:00
parent 9467675715
commit 3d5a3f2aa1
27 changed files with 113 additions and 113 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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
View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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