completion

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShellTypes = []string{
	"zsh", "bash", "powerShell",
}

ShellTypes contains all types of shell

Functions

func NewCmdCompletion

func NewCmdCompletion() *cobra.Command

Types

type CompletionOptions

type CompletionOptions struct {
	Type string
}

CompletionOptions is the option of completion command

func NewCompletionOptions

func NewCompletionOptions() *CompletionOptions

func (*CompletionOptions) AddFlags

func (o *CompletionOptions) AddFlags(cmd *cobra.Command)

func (*CompletionOptions) Run

func (o *CompletionOptions) Run(cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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