CLI commands

補完

OmeniaClaw completion

シェル補完スクリプトを生成し、必要に応じてシェルプロファイルにインストールします。

使用法

bash
OmeniaClaw completionOmeniaClaw completion --shell zshOmeniaClaw completion --installOmeniaClaw completion --shell fish --installOmeniaClaw completion --write-stateOmeniaClaw completion --shell bash --write-state

オプション

  • -s, --shell <shell>: 対象シェル(zshbashpowershellfish。デフォルト: zsh
  • -i, --install: source 行をシェルプロファイルに追加して補完をインストールします
  • --write-state: スクリプトを stdout に出力せず、補完スクリプトを $OmeniaClaw_STATE_DIR/completions に書き込みます
  • -y, --yes: インストール確認プロンプトをスキップします

  • --install は、シェルプロファイルに小さな「OmeniaClaw Completion」ブロックを書き込み、キャッシュされたスクリプトを参照するようにします。
  • --install または --write-state を指定しない場合、このコマンドはスクリプトを stdout に出力します。
  • 補完生成ではコマンドツリーを事前に読み込むため、ネストされたサブコマンドも含まれます。

関連

Was this useful?
On this page

On this page