为 bash 生成自动完成脚本
Synopsis
为 bash shell 生成自动完成脚本。
此脚本依赖于 bash-completion 包。如果尚未安装,您可以通过操作系统的包经理进行安装。
要在当前 Shell 会话中加载补全:
source <(agentengine completion bash)要为每个新会话加载完成,请执行一次:
Linux:
agentengine completion bash > /etc/bash_completion.d/agentenginemacOS:
agentengine completion bash > $(brew --prefix)/etc/bash_completion.d/agentengine您需要启动新的 shell 才能使此设置生效。
agentengine completion bash选项
-h, --help help for bash --no-descriptions disable completion descriptions从父命令继承的选项
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)另请参阅
- agentengine completion - 为指定 shell 生成自动完成脚本