v1.1
- 关于PTK
- 快速上手
- 安装PTK
- 使用手册
- 配置文件字段说明
- 配置文件示例
- 命令介绍
- ptk
- ptk completion
- ptk register
- ptk init-cluster
- ptk collect
- ptk rec-guc
- ptk cache
- ptk gen-ptkc
- ptk manage
- ptk demo
- ptk meta
- ptk version
- ptk self
- ptk gen-om-xml
- ptk env
- ptk gen-static-config
- ptk cluster
- ptk cluster rename
- ptk cluster throwout
- ptk cluster takeover
- ptk cluster uninstall-cm
- ptk cluster install-cm
- ptk cluster gen-cert-files
- ptk cluster load-cm-vip
- ptk cluster del-kerberos-auth
- ptk cluster add-kerberos-auth
- ptk cluster uninstall-kerberos-server
- ptk cluster install-kerberos-server
- ptk cluster is-in-upgrade
- ptk cluster upgrade-rollback
- ptk cluster upgrade-commit
- ptk cluster upgrade
- ptk cluster demote
- ptk cluster promote
- ptk cluster refresh
- ptk cluster shell
- ptk cluster modify-comment
- ptk cluster show-config
- ptk cluster set-guc
- ptk cluster show-guc
- ptk cluster set-hba
- ptk cluster show-hba
- ptk cluster scale-out
- ptk cluster scale-in
- ptk cluster uninstall-mogha
- ptk cluster install-mogha
- ptk cluster list-plugins
- ptk cluster install-plugin
- ptk cluster inspect
- ptk cluster failover
- ptk cluster switchover
- ptk cluster build
- ptk cluster status
- ptk cluster restart
- ptk cluster stop
- ptk cluster start
- ptk uninstall
- ptk ls
- ptk install
- ptk exec
- ptk template
- ptk encrypt
- ptk checkos
- ptk download
- ptk candidate
- 故障排查
- 常见问题
- 发布记录
- GPTK - 图形化部署工具
- 社区
- 附录:YAML语法
ptk completion zsh
Generate the autocompletion script for zsh
说明
Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in your current shell session:
source <(ptk completion zsh); compdef _ptk ptk
To load completions for every new session, execute once:
Linux
ptk completion zsh > "${fpath[1]}/_ptk"
macOS
ptk completion zsh > /usr/local/share/zsh/site-functions/_ptk
You will need to start a new shell for this setup to take effect.
语法
ptk completion zsh [flags]
选项
--no-descriptions
- 说明: disable completion descriptions
- 数据类型: bool
- 默认值: false
从父命令继承的选项
--disable-color
- 说明: 禁用彩色日志
- 数据类型: bool
- 默认值: false
--disable-debug-log
- 说明: 不生成调试日志文件
- 数据类型: bool
- 默认值: false
--disable-progressbar
- 说明: 全局不显示进度条
- 数据类型: bool
- 默认值: false
-h, --help
- 说明: 打印帮助信息
- 数据类型: bool
- 默认值: false
--log-file string
- 说明: 指定运行日志文件路径
- 数据类型: string
- 默认值: ""
--log-format string
- 说明: 指定运行日志的输出格式, 可选项: [text, json]
- 数据类型: string
- 默认值: "text"
--log-level string
- 说明: 指定运行日志级别, 可选项: [debug, info, warning, error, panic]
- 数据类型: string
- 默认值: "info"
--silence
- 说明: 不打印日志到标准输出
- 数据类型: bool
- 默认值: false
--skip-fix-ssh
- 说明: 无需通过交互修复 ssh 连接
- 数据类型: bool
- 默认值: false
另请参阅
- ptk completion - Generate the autocompletion script for the specified shell