-
Notifications
You must be signed in to change notification settings - Fork 0
/
bmdm.js
61 lines (49 loc) · 1.39 KB
/
bmdm.js
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
#! /usr/bin/env node
const { program } = require("commander");
const package = require("./package.json");
const all = require("./commands/all");
const create = require("./commands/create");
const install = require("./commands/install");
const list = require("./commands/list");
const remove = require("./commands/remove");
const set = require("./commands/set");
const update = require("./commands/update");
program
.name("bmdm")
.description("Manage all your Bot Maker for Discord mods using one CLI tool.")
.version(package.version);
program.command("all").description("install all available mods").action(all);
program
.command("create")
.alias("c")
.description("create a new mod")
.argument("<name>", "name of your mod")
.action(create);
program
.command("install")
.alias("i")
.description("install a specific mod")
.argument("<mod>", "name of the mod")
.action(install);
program
.command("list")
.alias("ls")
.description("list all installed mods")
.action(list);
program
.command("remove")
.alias("rm")
.description("remove a specific installed mod")
.argument("<mod>", "name of the mod")
.action(remove);
program
.command("set")
.description("set your Bot Maker for Discord path")
.argument("<path>", "Absolute path")
.action(set);
program
.command("update")
.alias("up")
.description("update all installed mods")
.action(update);
program.parse();