completion

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL