-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
45 lines (38 loc) · 1.4 KB
/
Copy pathindex.js
File metadata and controls
45 lines (38 loc) · 1.4 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
#!/usr/bin/env node
const { Command } = require("commander");
const program = new Command();
program.name("devkit").description("GitHub workflow automation CLI").version("0.1.0");
// command: 저장소 관리
program
.command("repo")
.description("GitHub 저장소 관리")
.option("-c, --create", "(옵션) 새로운 저장소 생성")
.action(require("./commands/repo"));
// command: 라벨 관리
program
.command("label")
.description("GitHub 라벨 관리")
.option("-c, --create", "(옵션) 라벨 목록 생성")
.option("-r, --reset", "(옵션) 기존 라벨 제거")
.action(require("./commands/label"));
// command: 이슈 관리
program
.command("issue")
.description("GitHub 이슈 관리")
.option("-c, --create", "(옵션) 새로운 이슈 생성")
.action(require("./commands/issue"));
// command: 브랜치 관리
program
.command("branch")
.description("GitHub 브랜치 관리")
.option("-c, --create", "(옵션) 새로운 브랜치 생성")
.action(require("./commands/branch"));
// command: 설정 관리
program
.command("config")
.description("GitHub DevKit 설정 관리")
.option("-t, --token", "(옵션) GitHub 토큰 설정")
.option("-p, --path", "(옵션) 클론 기본 경로 설정")
.option("-s, --show", "(옵션) 현재 설정 보기")
.action(require("./commands/config"));
program.parse(process.argv);