CLI commands

Completion

OmeniaClaw completion

สร้างสคริปต์ shell completion และเลือกติดตั้งลงในโปรไฟล์ shell ของคุณได้

การใช้งาน

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

ตัวเลือก

  • -s, --shell <shell>: shell เป้าหมาย (zsh, bash, powershell, fish; ค่าเริ่มต้น: zsh)
  • -i, --install: ติดตั้ง completion โดยเพิ่มบรรทัด source ลงในโปรไฟล์ shell ของคุณ
  • --write-state: เขียนสคริปต์ completion ลงใน $OmeniaClaw_STATE_DIR/completions โดยไม่พิมพ์ไปยัง stdout
  • -y, --yes: ข้ามข้อความยืนยันการติดตั้ง

หมายเหตุ

  • --install จะเขียนบล็อก "OmeniaClaw Completion" ขนาดเล็กลงในโปรไฟล์ shell ของคุณ และชี้ไปยังสคริปต์ที่แคชไว้
  • หากไม่ใช้ --install หรือ --write-state คำสั่งจะพิมพ์สคริปต์ไปยัง stdout
  • การสร้าง completion จะโหลดโครงสร้างคำสั่งแบบ eager เพื่อให้รวม subcommands ที่ซ้อนอยู่ด้วย

ที่เกี่ยวข้อง

Was this useful?
On this page

On this page