diff options
| author | kamtschatka <sschatka@gmail.com> | 2024-06-09 23:30:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-09 22:30:24 +0100 |
| commit | cde97267a90802c6a367aa61ff157983506deead (patch) | |
| tree | 7fc6dbca60ab537ce3e3be657f4d510dcdeb5fdb /apps/cli/src/index.ts | |
| parent | 6928800a604f05ef62234cb5c3ee1e60fb27ea1a (diff) | |
| download | karakeep-cde97267a90802c6a367aa61ff157983506deead.tar.zst | |
fix(cli): Bookmark list output is not a valid JSON. Fixes #150 (#181)
* bookmark list output is not a valid JSON #150
Reworked the cli to switch over to json output
* changed the logging to log created bookmarks as an array
switch all log output that is just a status to stderr
---------
Co-authored-by: kamtschatka <simon.schatka@gmx.at>
Diffstat (limited to 'apps/cli/src/index.ts')
| -rw-r--r-- | apps/cli/src/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/cli/src/index.ts b/apps/cli/src/index.ts index a4f6f7b4..a2a21a75 100644 --- a/apps/cli/src/index.ts +++ b/apps/cli/src/index.ts @@ -22,6 +22,7 @@ const program = new Command() .makeOptionMandatory(true) .env("HOARDER_SERVER_ADDR"), ) + .addOption(new Option("--json", "to output the result as JSON")) .version( import.meta.env && "CLI_VERSION" in import.meta.env ? import.meta.env.CLI_VERSION |
