aboutsummaryrefslogtreecommitdiffstats
path: root/apps/cli
diff options
context:
space:
mode:
Diffstat (limited to 'apps/cli')
-rw-r--r--apps/cli/package.json25
-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
-rw-r--r--apps/cli/tsconfig.json2
6 files changed, 22 insertions, 21 deletions
diff --git a/apps/cli/package.json b/apps/cli/package.json
index cd17bb14..7c504847 100644
--- a/apps/cli/package.json
+++ b/apps/cli/package.json
@@ -1,24 +1,25 @@
{
"$schema": "https://json.schemastore.org/package.json",
- "name": "@hoarderapp/cli",
- "version": "0.20.0",
- "description": "Command Line Interface (CLI) for Hoarder",
+ "name": "@karakeep/cli",
+ "version": "0.23.0",
+ "description": "Command Line Interface (CLI) for Karakeep",
"license": "GNU Affero General Public License version 3",
"keywords": [
"hoarder",
+ "karakeep",
"cli"
],
"exports": "./dist/index.mjs",
"bin": {
- "hoarder": "dist/index.mjs"
+ "karakeep": "dist/index.mjs"
},
"devDependencies": {
"@commander-js/extra-typings": "^12.0.1",
- "@hoarder/eslint-config": "workspace:^0.2.0",
- "@hoarder/prettier-config": "workspace:^0.1.0",
- "@hoarder/shared": "workspace:^0.1.0",
- "@hoarder/trpc": "workspace:^0.1.0",
- "@hoarder/tsconfig": "workspace:^0.1.0",
+ "@karakeep/eslint-config": "workspace:^0.2.0",
+ "@karakeep/prettier-config": "workspace:^0.1.0",
+ "@karakeep/shared": "workspace:^0.1.0",
+ "@karakeep/trpc": "workspace:^0.1.0",
+ "@karakeep/tsconfig": "workspace:^0.1.0",
"@trpc/client": "11.0.0",
"@trpc/server": "11.0.0",
"@tsconfig/node22": "^22.0.0",
@@ -40,14 +41,14 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/hoarder-app/hoarder.git",
+ "url": "git+https://github.com/karakeep-app/karakeep.git",
"directory": "apps/cli"
},
"eslintConfig": {
"root": true,
"extends": [
- "@hoarder/eslint-config/base"
+ "@karakeep/eslint-config/base"
]
},
- "prettier": "@hoarder/prettier-config"
+ "prettier": "@karakeep/prettier-config"
}
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();
diff --git a/apps/cli/tsconfig.json b/apps/cli/tsconfig.json
index bf344404..07b074a3 100644
--- a/apps/cli/tsconfig.json
+++ b/apps/cli/tsconfig.json
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
- "extends": "@hoarder/tsconfig/node.json",
+ "extends": "@karakeep/tsconfig/node.json",
"include": ["src", "vite.config.mts"],
"exclude": ["node_modules", "dist"],
"compilerOptions": {