-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.ts
More file actions
29 lines (26 loc) · 1.19 KB
/
cli.ts
File metadata and controls
29 lines (26 loc) · 1.19 KB
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
26
27
28
29
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: {
"smart-scraper": () => import("./commands/smart-scraper.js").then((m) => m.default),
"search-scraper": () => import("./commands/search-scraper.js").then((m) => m.default),
markdownify: () => import("./commands/markdownify.js").then((m) => m.default),
crawl: () => import("./commands/crawl.js").then((m) => m.default),
sitemap: () => import("./commands/sitemap.js").then((m) => m.default),
scrape: () => import("./commands/scrape.js").then((m) => m.default),
"agentic-scraper": () => import("./commands/agentic-scraper.js").then((m) => m.default),
"generate-schema": () => import("./commands/generate-schema.js").then((m) => m.default),
history: () => import("./commands/history.js").then((m) => m.default),
credits: () => import("./commands/credits.js").then((m) => m.default),
validate: () => import("./commands/validate.js").then((m) => m.default),
},
});
runMain(main);