internal

package
v1.38.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

--------------------------------------------------------------- The original code is github.com/spf13/cobra/bash_completions.go

--------------------------------------------------------------- The original code is github.com/spf13/cobra/zsh_completions.go

Index

Constants

View Source
const (
	BashCompFilenameExt     = "cobra_annotation_bash_completion_filename_extensions"
	BashCompCustom          = "cobra_annotation_bash_completion_custom"
	BashCompOneRequiredFlag = "cobra_annotation_bash_completion_one_required_flag"
	BashCompSubdirsInDir    = "cobra_annotation_bash_completion_subdirs_in_dir"
)

Annotations for Bash completion.

Variables

This section is empty.

Functions

func GenBashCompletion

func GenBashCompletion(c *cobra.Command, w io.Writer) error

GenBashCompletion generates bash completion file and writes to the passed writer.

func GenZshCompletion

func GenZshCompletion(cmd *cobra.Command, w io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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