@bifos/dooray-cli 0.12.0 → 0.14.0

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
@@ -378,13 +378,19 @@ dooray post workflow <project> 42 "진행 중" # 워크플로우 변경
378
378
  ```bash
379
379
  dooray wiki list # 위키 목록
380
380
  dooray wiki pages <project> # 페이지 목록
381
+ dooray wiki tree <project> # 페이지 계층 트리 (root 부터 재귀)
382
+ dooray wiki tree <project> --depth 2 # 손자까지만
381
383
  dooray wiki page get <project> <page-id> # 페이지 상세
382
384
  dooray wiki page create <project> --title "..." [--parent <page-id>] [--body "..." | --body-file <path>]
383
385
  dooray wiki page edit <project> <page-id> --title "새 제목" # 제목만 (비대화형)
384
386
  dooray wiki page edit <project> <page-id> --body "..." | --body-file <path> # 본문만 (비대화형)
385
387
  dooray wiki page edit <project> <page-id> # $EDITOR (플래그 없을 때)
388
+ dooray wiki page delete <project> <page-id> # 삭제 (y/N 확인)
389
+ dooray wiki page delete <project> <page-id> --yes # 확인 없이 삭제 (자동화용)
386
390
  ```
387
391
 
392
+ 하위 페이지가 있는 페이지를 삭제하면 하위 페이지는 상위 페이지로 재부착된다 (사라지지 않음).
393
+
388
394
  #### 위키 페이지 첨부파일
389
395
 
390
396
  post 의 `post file` 명령군과 동일 패턴 — `<project> <page-id>` 외에도 `--id`/`--url`/positional URL 지원.
@@ -515,6 +521,28 @@ dooray mail send --to "a@b.com" --subject "HTML 메일" --body "<h1>Hello</h1>"
515
521
  dooray mail reply <uid> --body "답장 내용"
516
522
  ```
517
523
 
524
+ ### 메신저
525
+
526
+ Dooray 메신저로 1:1 다이렉트 메시지 또는 대화방 메시지를 보낼 수 있습니다.
527
+ 전송은 API 토큰 소유자 명의로 나갑니다.
528
+
529
+ ```bash
530
+ # 1:1 다이렉트 메시지 (받는 사람은 organizationMemberId 또는 이메일)
531
+ dooray messenger send --to "user@example.com" --body "배포 완료했습니다."
532
+ dooray messenger send --to <memberId> --body-file ./message.md
533
+
534
+ # 대화방 메시지 (channelId 또는 대화방 이름)
535
+ dooray messenger channel-send --channel "배포 알림방" --body "빌드 성공"
536
+ dooray messenger channel-send --channel <channelId> --body-file - # stdin
537
+
538
+ # --body 없이 실행하면 $EDITOR 로 본문을 작성
539
+ dooray messenger send --to "user@example.com"
540
+ ```
541
+
542
+ - `--to`는 이름 검색을 지원하지 않습니다. organizationMemberId 또는 이메일만 입력하세요.
543
+ - `--channel`은 채널 ID 또는 자신이 속한 대화방 이름(부분일치)으로 지정할 수 있습니다.
544
+ 이름이 겹치는 대화방이 여러 개면 후보 목록이 함께 출력됩니다.
545
+
518
546
  ### 첨부파일
519
547
 
520
548
  업무에 파일을 첨부하거나, 첨부된 파일을 다운로드할 수 있습니다.