-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
81 lines (76 loc) · 3.56 KB
/
index.ts
File metadata and controls
81 lines (76 loc) · 3.56 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
if (process.argv.includes("--no-color") || process.env.NO_COLOR) {
process.env.NO_COLOR = "1";
}
import pc from "picocolors";
import { appsCommand } from "./commands/apps.js";
import { authCommand } from "./commands/auth.js";
import { customFieldsCommand } from "./commands/custom-fields.js";
import { membersCommand } from "./commands/members.js";
import { permissionsCommand } from "./commands/permissions.js";
import { plansCommand } from "./commands/plans.js";
import { pricesCommand } from "./commands/prices.js";
import { providersCommand } from "./commands/providers.js";
import { recordsCommand } from "./commands/records.js";
import { resetCommand } from "./commands/reset.js";
import { skillsCommand } from "./commands/skills.js";
import { ssoCommand } from "./commands/sso.js";
import { tablesCommand } from "./commands/tables.js";
import { updateCommand } from "./commands/update.js";
import { usersCommand } from "./commands/users.js";
import { whoamiCommand } from "./commands/whoami.js";
import { program } from "./lib/program.js";
const banner = [
"",
pc.bold(
pc.cyan(
"███╗ ███╗███████╗███╗ ███╗██████╗ ███████╗██████╗ ███████╗████████╗ █████╗ ██████╗██╗ ██╗"
)
),
pc.bold(
pc.cyan(
"████╗ ████║██╔════╝████╗ ████║██╔══██╗██╔════╝██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝"
)
),
pc.bold(
pc.cyan(
"██╔████╔██║█████╗ ██╔████╔██║██████╔╝█████╗ ██████╔╝███████╗ ██║ ███████║██║ █████╔╝ "
)
),
pc.bold(
pc.cyan(
"██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║██╔══██╗██╔══╝ ██╔══██╗╚════██║ ██║ ██╔══██║██║ ██╔═██╗ "
)
),
pc.bold(
pc.cyan(
"██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║██████╔╝███████╗██║ ██║███████║ ██║ ██║ ██║╚██████╗██║ ██╗"
)
),
pc.bold(
pc.cyan(
"╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝"
)
),
"",
].join("\n");
if (!(process.argv.includes("--quiet") || process.argv.includes("-q"))) {
process.stderr.write(`${banner}\n`);
}
program.action(() => program.help());
program.addCommand(appsCommand);
program.addCommand(authCommand);
program.addCommand(whoamiCommand);
program.addCommand(membersCommand);
program.addCommand(permissionsCommand);
program.addCommand(plansCommand);
program.addCommand(pricesCommand);
program.addCommand(tablesCommand);
program.addCommand(recordsCommand);
program.addCommand(customFieldsCommand);
program.addCommand(usersCommand);
program.addCommand(providersCommand);
program.addCommand(skillsCommand);
program.addCommand(ssoCommand);
program.addCommand(resetCommand);
program.addCommand(updateCommand);
await program.parseAsync();