Langsung ke konten utama

openclaw completion

Hasilkan skrip completion shell dan secara opsional instal ke profil shell Anda.

Penggunaan

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

Opsi

  • -s, --shell <shell>: target shell (zsh, bash, powershell, fish; default: zsh)
  • -i, --install: instal completion dengan menambahkan baris source ke profil shell Anda
  • --write-state: tulis skrip completion ke $OPENCLAW_STATE_DIR/completions tanpa mencetak ke stdout
  • -y, --yes: lewati prompt konfirmasi instalasi

Catatan

  • --install menulis blok kecil “OpenClaw Completion” ke profil shell Anda dan mengarahkannya ke skrip yang di-cache.
  • Tanpa --install atau --write-state, perintah akan mencetak skrip ke stdout.
  • Pembuatan completion memuat tree perintah secara eager sehingga subperintah bertingkat ikut disertakan.