@bifos/dooray-cli 0.3.1 → 0.5.2

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 CHANGED
@@ -12,21 +12,31 @@ npm install -g @bifos/dooray-cli
12
12
 
13
13
  ## 초기 설정 (Setup)
14
14
 
15
+ 대화형 마법사로 한 번에 설정할 수 있습니다:
16
+
17
+ ```bash
18
+ dooray setup
19
+ ```
20
+
21
+ API Endpoint 선택 → API Key 입력 → 연결 테스트 → 메일 설정(선택)을 순서대로 진행합니다.
22
+ API 토큰은 `https://{tenant}.dooray.com/setting/api/token`에서 발급할 수 있습니다.
23
+
24
+ 수동 설정도 가능합니다:
25
+
15
26
  ```bash
16
27
  dooray config set base-url https://api.dooray.com
17
28
  dooray config set api-key <YOUR_API_TOKEN>
18
29
  dooray doctor
19
30
  ```
20
31
 
21
- API 토큰은 `https://{org}.dooray.com/setting/api/token`에서 발급할 수 있습니다.
22
-
23
32
  ## 사용법 (Usage)
24
33
 
25
34
  ### 프로젝트
26
35
 
27
36
  ```bash
28
- dooray project list # 프로젝트 목록
37
+ dooray project list # 프로젝트 목록 (기본: public)
29
38
  dooray project list --search ocr # 코드로 검색
39
+ dooray project list --type private # 개인 프로젝트 목록
30
40
  dooray project members tc-ocr # 멤버 목록
31
41
  dooray project workflows tc-ocr # 워크플로우 목록
32
42
  ```
@@ -44,10 +54,13 @@ dooray post get tc-ocr 42 --json # JSON 출력
44
54
 
45
55
  ```bash
46
56
  dooray post create tc-ocr \
47
- --subject "업무 제목" \
57
+ --title "업무 제목" \
48
58
  --body "본문 마크다운" \
49
59
  --to "담당자이름" \
50
60
  --priority normal
61
+
62
+ # 본문을 파일에서 읽기 (--body와 --body-file은 동시 사용 불가)
63
+ dooray post create tc-ocr --title "업무 제목" --body-file ./content.md
51
64
  ```
52
65
 
53
66
  ### 업무 수정
@@ -57,7 +70,10 @@ dooray post create tc-ocr \
57
70
  dooray post edit tc-ocr 42
58
71
 
59
72
  # 비대화형 (AI 에이전트 친화)
60
- dooray post edit tc-ocr 42 --subject "새 제목" --body "새 본문"
73
+ dooray post edit tc-ocr 42 --title "새 제목" --body "새 본문"
74
+
75
+ # 본문을 파일에서 읽기
76
+ dooray post edit tc-ocr 42 --body-file ./updated.md
61
77
  ```
62
78
 
63
79
  ### 댓글
@@ -65,6 +81,7 @@ dooray post edit tc-ocr 42 --subject "새 제목" --body "새 본문"
65
81
  ```bash
66
82
  dooray post comment list tc-ocr 42
67
83
  dooray post comment add tc-ocr 42 --body "댓글 내용"
84
+ dooray post comment add tc-ocr 42 --body-file ./comment.md
68
85
  ```
69
86
 
70
87
  ### 상태 변경
@@ -80,14 +97,18 @@ dooray post workflow tc-ocr 42 "진행 중" # 워크플로우 변경
80
97
  dooray wiki list # 위키 목록
81
98
  dooray wiki pages tc-ocr # 페이지 목록
82
99
  dooray wiki page get tc-ocr <page-id> # 페이지 상세
100
+ dooray wiki page create tc-ocr --title "..." [--parent <page-id>] [--body "..." | --body-file <path>]
101
+ dooray wiki page edit tc-ocr <page-id> --title "새 제목" # 제목만 (비대화형)
102
+ dooray wiki page edit tc-ocr <page-id> --body "..." | --body-file <path> # 본문만 (비대화형)
103
+ dooray wiki page edit tc-ocr <page-id> # $EDITOR (플래그 없을 때)
83
104
  ```
84
105
 
85
106
  ### 메일
86
107
 
87
- IMAP을 통해 Dooray 메일을 조회할 수 있습니다.
108
+ IMAP을 통해 Dooray 메일을 조회할 수 있습니다. 메일 설정은 `dooray setup`에서 한 번에 진행하거나, 수동으로 설정할 수 있습니다.
88
109
 
89
110
  ```bash
90
- # 초기 설정 (서버 정보는 기본값 제공)
111
+ # 수동 설정 (dooray setup 사용 시 불필요)
91
112
  dooray config set imap-username your@email.com
92
113
  dooray config set imap-password <IMAP_APP_PASSWORD>
93
114
 
@@ -155,7 +176,7 @@ cp -r skills/dooray-cli ~/.claude/skills/
155
176
 
156
177
  ## 캐시
157
178
 
158
- 프로젝트, 멤버, 워크플로우 정보는 `~/.dooray/cache/`에 캐시됩니다.
179
+ 프로젝트, 멤버, 워크플로우, 위키 정보는 `~/.dooray/cache/`에 캐시됩니다.
159
180
 
160
181
  ```bash
161
182
  dooray cache clear # 캐시 삭제
@@ -166,6 +187,7 @@ dooray doctor # 캐시 상태 확인
166
187
 
167
188
  - TypeScript + Commander.js
168
189
  - ky (fetch 기반 HTTP 클라이언트)
190
+ - @inquirer/prompts (대화형 설정 마법사)
169
191
  - tsup (esbuild 번들러)
170
192
  - chalk + cli-table3 (출력 포맷)
171
193