-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·43 lines (37 loc) · 826 Bytes
/
Copy pathindex.js
File metadata and controls
executable file
·43 lines (37 loc) · 826 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env node
const { Command } = require("commander");
const { description, version } = require("./package.json");
const psql = require("./commands/psql");
const js = require("./commands/javascript");
const git = require("./commands/git");
const gh = require("./commands/gh");
const program = new Command();
program
.name("syntax-tool")
.description(description)
.version(version, "-v", "-version");
program
.command("psql")
.description("PSQL CLI commands")
.action(() => {
psql();
});
program
.command("js")
.description("JS popular functions")
.action(() => {
js();
});
program
.command("git")
.description("Git CLI commands")
.action(() => {
git();
});
program
.command("gh")
.description("Github CLI commands")
.action(() => {
gh();
});
program.parse();