openclaw completion

셸 자동 완성 스크립트를 생성하고 선택적으로 셸 프로필에 설치합니다.

사용법

openclaw completion
openclaw completion --shell zsh
openclaw completion --install
openclaw completion --shell fish --install
openclaw completion --write-state
openclaw completion --shell bash --write-state

옵션

  • -s, --shell <shell>: 셸 대상 (zsh, bash, powershell, fish; 기본값: zsh)
  • -i, --install: 셸 프로필에 소스 줄을 추가하여 자동 완성 설치
  • --write-state: stdout에 출력하지 않고 $OPENCLAW_STATE_DIR/completions에 자동 완성 스크립트 저장
  • -y, --yes: 설치 확인 프롬프트 건너뛰기

참고 사항

  • --install은 셸 프로필에 작은 “OpenClaw Completion” 블록을 기록하고 캐시된 스크립트를 가리킵니다.
  • --install 또는 --write-state 없이 명령어를 실행하면 스크립트를 stdout에 출력합니다.
  • 자동 완성 생성은 중첩된 하위 명령어가 포함되도록 명령어 트리를 즉시 로드합니다.