-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.ts
More file actions
25 lines (22 loc) · 854 Bytes
/
cli.ts
File metadata and controls
25 lines (22 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import "dotenv/config";
import "./lib/env.js";
import { defineCommand, runMain } from "citty";
import { getVersion, showBanner } from "./utils/banner.js";
showBanner();
const main = defineCommand({
meta: {
name: "just-scrape",
version: getVersion(),
description: "ScrapeGraph AI CLI tool",
},
subCommands: {
extract: () => import("./commands/extract.js").then((m) => m.default),
search: () => import("./commands/search.js").then((m) => m.default),
scrape: () => import("./commands/scrape.js").then((m) => m.default),
markdownify: () => import("./commands/markdownify.js").then((m) => m.default),
crawl: () => import("./commands/crawl.js").then((m) => m.default),
history: () => import("./commands/history.js").then((m) => m.default),
credits: () => import("./commands/credits.js").then((m) => m.default),
},
});
runMain(main);