CLI commands
Completion
OmeniaClaw completion
สร้างสคริปต์ shell completion และเลือกติดตั้งลงในโปรไฟล์ shell ของคุณได้
การใช้งาน
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?