aboutsummaryrefslogtreecommitdiffstats
path: root/apps/cli/src
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2025-04-12 19:37:18 +0100
committerMohamedBassem <me@mbassem.com>2025-04-12 19:37:40 +0100
commit755fc36e912964863d4f46bb32adda6332b419fe (patch)
tree3c54e9e6ed7686a119804716ccb6fdd6ad0da3c3 /apps/cli/src
parent7f569042f153a55189fb28e6ef6ab127b8190afd (diff)
downloadkarakeep-755fc36e912964863d4f46bb32adda6332b419fe.tar.zst
chore: Rename hoarder packages to karakeep
Diffstat (limited to 'apps/cli/src')
-rw-r--r--apps/cli/src/commands/bookmarks.ts4
-rw-r--r--apps/cli/src/commands/lists.ts2
-rw-r--r--apps/cli/src/index.ts8
-rw-r--r--apps/cli/src/lib/trpc.ts2
4 files changed, 8 insertions, 8 deletions
diff --git a/apps/cli/src/commands/bookmarks.ts b/apps/cli/src/commands/bookmarks.ts
index b6f7b2d3..130ad376 100644
--- a/apps/cli/src/commands/bookmarks.ts
+++ b/apps/cli/src/commands/bookmarks.ts
@@ -9,11 +9,11 @@ import {
import { getAPIClient } from "@/lib/trpc";
import { Command } from "@commander-js/extra-typings";
-import type { ZBookmark } from "@hoarder/shared/types/bookmarks";
+import type { ZBookmark } from "@karakeep/shared/types/bookmarks";
import {
BookmarkTypes,
MAX_NUM_BOOKMARKS_PER_PAGE,
-} from "@hoarder/shared/types/bookmarks";
+} from "@karakeep/shared/types/bookmarks";
export const bookmarkCmd = new Command()
.name("bookmarks")
diff --git a/apps/cli/src/commands/lists.ts b/apps/cli/src/commands/lists.ts
index 57b6d948..864fa790 100644
--- a/apps/cli/src/commands/lists.ts
+++ b/apps/cli/src/commands/lists.ts
@@ -9,7 +9,7 @@ import { getAPIClient } from "@/lib/trpc";
import { Command } from "@commander-js/extra-typings";
import { getBorderCharacters, table } from "table";
-import { listsToTree } from "@hoarder/shared/utils/listUtils";
+import { listsToTree } from "@karakeep/shared/utils/listUtils";
export const listsCmd = new Command()
.name("lists")
diff --git a/apps/cli/src/index.ts b/apps/cli/src/index.ts
index a2a21a75..7d6c1472 100644
--- a/apps/cli/src/index.ts
+++ b/apps/cli/src/index.ts
@@ -7,12 +7,12 @@ import { setGlobalOptions } from "@/lib/globals";
import { Command, Option } from "@commander-js/extra-typings";
const program = new Command()
- .name("hoarder")
- .description("A CLI interface to interact with the hoarder api")
+ .name("karakeep")
+ .description("A CLI interface to interact with the karakeep api")
.addOption(
new Option("--api-key <key>", "the API key to interact with the API")
.makeOptionMandatory(true)
- .env("HOARDER_API_KEY"),
+ .env("KARAKEEP_API_KEY"),
)
.addOption(
new Option(
@@ -20,7 +20,7 @@ const program = new Command()
"the address of the server to connect to",
)
.makeOptionMandatory(true)
- .env("HOARDER_SERVER_ADDR"),
+ .env("KARAKEEP_SERVER_ADDR"),
)
.addOption(new Option("--json", "to output the result as JSON"))
.version(
diff --git a/apps/cli/src/lib/trpc.ts b/apps/cli/src/lib/trpc.ts
index 27082b10..e6c5555d 100644
--- a/apps/cli/src/lib/trpc.ts
+++ b/apps/cli/src/lib/trpc.ts
@@ -2,7 +2,7 @@ import { getGlobalOptions } from "@/lib/globals";
import { createTRPCClient, httpBatchLink } from "@trpc/client";
import superjson from "superjson";
-import type { AppRouter } from "@hoarder/trpc/routers/_app";
+import type { AppRouter } from "@karakeep/trpc/routers/_app";
export function getAPIClient() {
const globals = getGlobalOptions();