From cde97267a90802c6a367aa61ff157983506deead Mon Sep 17 00:00:00 2001 From: kamtschatka Date: Sun, 9 Jun 2024 23:30:24 +0200 Subject: 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 --- apps/cli/src/index.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/cli/src/index.ts') 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 -- cgit v1.2.3-70-g09d2