You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/pkg/cli/cmds/completion.go

21 lines
429 B

package cmds
import (
"github.com/urfave/cli"
)
func NewCompletionCommand(action func(*cli.Context) error) cli.Command {
return cli.Command{
Name: "completion",
Usage: "Install shell completion script",
UsageText: appName + " completion [SHELL] (valid shells: bash, zsh)",
Action: action,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "i",
Usage: "Install source line to rc file",
},
},
}
}