completion bash
limactl completion bash
为 bash 生成自动补全脚本
概述
为 bash shell 生成自动补全脚本。
要在当前会话中加载补全:
source <(limactl completion bash)
要为每个新会话配置 bash 补全,请执行一次:
# Linux:
limactl completion bash > /etc/bash_completion.d/limactl
# macOS:
limactl completion bash > $(brew --prefix)/etc/bash_completion.d/limactl
注意:需要先安装 bash-completion。
limactl completion bash
选项
-h, --help help for bash
从父命令继承的选项
--debug 调试模式
--log-format string 设置日志格式 [text, json] (default "text")
--log-level string 设置日志级别 [trace, debug, info, warn, error]
--tty 启用 TUI 交互,如打开编辑器。默认在终端时为 true。自动化时设为 false。
-y, --yes --tty=false 的别名
另请参见
- limactl completion - 为指定的 shell 生成自动补全脚本