Commit graph

156 commits

Author SHA1 Message Date
lew
06e09df829 feat(cmd): SilenceUsage all but root 2025-12-17 14:24:44 +00:00
lew
f6f1376d1a fix(delCmd): error on KeyNotFound 2025-12-17 14:17:02 +00:00
lew
60d74e5ec1 feat(cmd): made error messaging closer to coreutils 2025-12-17 14:13:46 +00:00
lew
221d4cd921 feat(cmd): silence mvCmd usage on err and improved err msging 2025-12-17 13:57:22 +00:00
lew
3a4dd11acb feat(cmd): mv and cp 2025-12-17 13:19:25 +00:00
lew
2e50d4392f refactor(delete-db): default cmd set to del-db 2025-11-20 14:39:33 +00:00
lew
67fda05145 feat(Store): allows overriding of directory with PDA_DATA_DIR env 2025-11-20 13:03:07 +00:00
lew
13243e97a3 revert(Set/Get): reduces --help text; long explanation will go into actual documentation 2025-11-20 03:17:46 +00:00
lew
25b4363c5f feat(template): list func to funcmap 2025-11-20 03:01:45 +00:00
lew
99abdf4a31 feat(template): int func to coerce value to int 2025-11-20 01:18:14 +00:00
lew
9fdc831832 feat(Set/Get): added Long descriptions 2025-11-20 01:01:02 +00:00
lew
0a70169adb feat(Get): adds 'require' template func 2025-11-19 22:49:00 +00:00
lew
73cea8d660 feat(Get): adds support for text/template with [[ ]] delims 2025-11-19 22:36:46 +00:00
lew
a5e2e39784 fix(Get): Errors should be reported by their executing shell; all errors were bubbling up to PDA where they should not be 2025-11-19 15:12:58 +00:00
lew
2d756a5642 feat(Get): --run/-c flag to execute the gotten result as a sh cmd 2025-11-19 15:05:12 +00:00
lew
4bf3d60140 feat(listDbsCmd): lsd alias 2025-11-19 12:45:37 +00:00
lew
323c4d915a feat(cmds): 's' and 'g' aliases for set and get 2025-11-19 12:44:04 +00:00
lew
28582bc0b2 feat(cmds): adds common aliases for main commands 2025-11-19 12:41:45 +00:00
lew
885ef5ce4f feat(list): default to no borders, and no header; adds TSV output 2025-11-19 12:37:58 +00:00
lew
a4930b781e fix(list): unnecessary parameter 2025-11-19 11:13:35 +00:00
lew
b93475ea45 feat(root): replaces cobra-cli placeholder desc with an actual desc 2025-11-11 13:55:59 +00:00
lew
3a781a56f1 style(root): removes superfluous cobra-cli comments 2025-11-11 13:34:09 +00:00
lew
0dabf155be refactor(list): extracts the table column construction into list_table.go -- this needs a massive clean-up 2025-11-08 15:30:08 +00:00
lew
983c07c829 refactor(list): extracts ListArgs construction into its own list_flags.go file 2025-11-08 14:57:51 +00:00
lew
b99655a293 feat(list): swaps out manual format parsing for a formatEnum implementing pflag.Value 2025-11-08 14:40:24 +00:00
lew
a86100e045 fix(set): removed manual ttl parsing in favour of the .Duration() flag i didn't know existed 2025-11-07 19:52:06 +00:00
lew
6c6bd1adc1 feat(list): adds support for different go-pretty formatting styles - table[-dark/bright], csv, html, etc. 2025-11-07 18:29:49 +00:00
lew
7600434a05 chore(refactor): refactors listcmd 2025-11-07 17:19:39 +00:00
lew
d96b0f7a2c feat(list): limits column widths to fit on-screen 2025-11-07 14:00:34 +00:00
lew
5ba0ff1e31 feat(list): port over to go-pretty 2025-11-07 13:49:43 +00:00
lew
4ace97bddc feat(flags): negative flags added for defaults (--no-keys, --no-values), and removes --include- prefix from positive flags 2025-11-07 12:25:03 +00:00
lew
434855e958 feat(list): secret placeholder tweak 2025-11-07 12:07:01 +00:00
lew
1300bb76bf feat(list): output is now tabwritten 2025-11-07 12:05:18 +00:00
lew
cf8a19cba0 feat(ttl): added --ttl to setCmd, parsed with Go time.ParseDuration 2025-11-07 11:23:14 +00:00
lew
98793b334a feat(ttl): added ttl support in dump/restore 2025-11-07 11:18:23 +00:00
lew
d68bc8979b feat(list): added --only-keys, -k and --only-values, -v flags 2025-11-07 00:22:07 +00:00
lew
3f30a23c36 feat(cmd): renamed --secret to --include-secret across the board when getting secrets 2025-11-07 00:08:42 +00:00
lew
14ce0cbe72 feat(list): secret entries are marked [secret] unless --secret is passed 2025-11-07 00:04:43 +00:00
lew
f1a4f86675 feat(get): secret entries will not output unless --secret is explicitly passed 2025-11-06 23:59:49 +00:00
lew
9036efb25b feat(restore): restores secret metadata byte 2025-11-06 23:57:01 +00:00
lew
af61485deb feat(dump): secret entries are excluded unless --secret is passed 2025-11-06 23:56:50 +00:00
lew
42735143e7 feat(set): --secret flag to mark input as a secret 2025-11-06 23:54:06 +00:00
lew
5cdcc1d3d3 feat(restore): restore ndjson dumps 2025-11-06 23:42:09 +00:00
lew
86867a097b feat(dump): dump on a per-entry basis, using whichever encoding works. or force all into a specified type 2025-11-06 23:41:56 +00:00
lew
571e692ea5 feat(dump): dumping data from badger.DB into n-djson 2025-11-06 23:18:27 +00:00
lew
11cafdeb3d feat(list): adds --delimiter flag to override default 2025-11-06 22:56:21 +00:00
lew
0b980ed9dc feat(Store): extracted suggestion logic into a helper so we can share it between list and delete-dbs 2025-11-06 22:52:14 +00:00
lew
fa224d9b38 feat(parser): adds explicit DB parser for when we don't want a key - should probably reject keyinput on match 2025-11-06 22:47:01 +00:00
lew
af049a6ade feat(delete): added confirmation prompt, overrideable with --force 2025-11-06 22:39:48 +00:00
lew
990ff7ce40 feat(cmd): added flag for displaying binary data in tty, and cleaned up some old code 2025-11-06 22:30:50 +00:00