Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdCompletion = &cobra.Command{
Use: "completion",
Short: "生成命令行自动补全脚本",
Long: `生成命令行自动补全脚本,支持 bash、zsh、fish 和 powershell。
使用方法:
# 生成 bash 补全脚本
phantasm completion bash > ~/.local/share/bash-completion/completions/phantasm
# 生成 zsh 补全脚本
phantasm completion zsh > ~/.zsh/completions/_phantasm
# 生成 fish 补全脚本
phantasm completion fish > ~/.config/fish/completions/phantasm.fish
# 生成 powershell 补全脚本
phantasm completion powershell > ~/.config/powershell/completions/phantasm.ps1`,
Run: run,
}
CmdCompletion 表示自动补全命令
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.