@devchangjun/ctm 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -3
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,19 +7,25 @@ Jira 티켓 기반 Git 브랜치 관리 CLI.
|
|
|
7
7
|
|
|
8
8
|
## 설치
|
|
9
9
|
|
|
10
|
-
### Homebrew (
|
|
10
|
+
### Homebrew (macOS)
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
13
|
brew tap ckdwns9121/ctm
|
|
14
14
|
brew install ctm
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
업데이트:
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
brew upgrade ctm
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
### npm (Windows / Linux / macOS)
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install -g @devchangjun/ctm
|
|
27
|
+
```
|
|
28
|
+
|
|
23
29
|
---
|
|
24
30
|
|
|
25
31
|
## 시작하기
|
|
@@ -92,6 +98,26 @@ Branch name › fix/CGKR-1423 (수정 가능)
|
|
|
92
98
|
|
|
93
99
|
---
|
|
94
100
|
|
|
101
|
+
### `ctm co [key]` — 브랜치 체크아웃
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
ctm co CGKR-1423 # 해당 티켓의 브랜치로 체크아웃
|
|
105
|
+
ctm co 1423 # 숫자만 입력해도 OK
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
같은 티켓으로 여러 브랜치가 있으면 선택 리스트가 나옵니다.
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
? Multiple branches found for CGKR-1423:
|
|
112
|
+
❯ feat/CGKR-1423
|
|
113
|
+
fix/CGKR-1423
|
|
114
|
+
refactor/CGKR-1423
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
uncommitted 변경사항이 있으면 stash 여부를 물어보고, stash를 거부하면 체크아웃을 중단합니다.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
95
121
|
### `ctm st` — 현재 상태 확인
|
|
96
122
|
|
|
97
123
|
```bash
|
|
@@ -204,7 +230,8 @@ ctm wt rm CGKR-1423 # 머지 후 worktree 정리
|
|
|
204
230
|
|
|
205
231
|
## 요구사항
|
|
206
232
|
|
|
207
|
-
- macOS
|
|
233
|
+
- macOS / Windows / Linux (npm 설치 시)
|
|
234
|
+
- Node.js 20+ (npm 설치 시)
|
|
208
235
|
- Git
|
|
209
236
|
- GitHub CLI (`gh`) — `ctm done` 사용 시 필요
|
|
210
237
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { createRequire } from "module";
|
|
4
5
|
import { Command } from "commander";
|
|
5
6
|
|
|
6
7
|
// src/commands/init.ts
|
|
@@ -1218,8 +1219,10 @@ async function doRemove(tree, branchName, options) {
|
|
|
1218
1219
|
}
|
|
1219
1220
|
|
|
1220
1221
|
// src/index.ts
|
|
1222
|
+
var require2 = createRequire(import.meta.url);
|
|
1223
|
+
var { version } = require2("../package.json");
|
|
1221
1224
|
var program = new Command();
|
|
1222
|
-
program.name("ctm").description("Colo Ticket Manager \u2014 Jira-driven branch management").version(
|
|
1225
|
+
program.name("ctm").description("Colo Ticket Manager \u2014 Jira-driven branch management").version(version);
|
|
1223
1226
|
program.command("init").description("Configure CTM with Jira credentials and project settings").action(initCommand);
|
|
1224
1227
|
program.command("issues").alias("ls").description("List Jira issues assigned to you").option("-a, --all", "Show issues from all projects").option("-s, --status <status>", "Filter by status").option("-p, --project <project>", "Filter by project key").action(issuesCommand);
|
|
1225
1228
|
program.command("start [key]").description("Create and checkout a branch for a Jira issue (e.g. CTM-123 or just 123)").option("-w, --worktree", "Create a linked worktree instead of switching branches").action(startCommand);
|