bashcompletions

package
v0.8.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "bash-completions",
	Short: "Generate bash completion scripts",
	Long: `To generate completion files, run

wksctl bash-completions [-o <completions_file|directory>]

and follow instructions for your OS to configure/install the completion file.
`,
	Run: func(cmd *cobra.Command, args []string) {
		if output != "" {
			outfile, err := utilities.CreateFile(output, bashCompletionFilename)
			if err != nil {
				log.Fatal(err)
			}
			cmd.Root().GenBashCompletion(outfile)
		} else {
			cmd.Root().GenBashCompletion(os.Stdout)
		}
	}}

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