internal
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package internal contains internal code for the ffcomplete package.
Index¶
Constants¶
This section is empty.
Variables¶
var (CompleteCmds map[*ffcli.Command]CompleteFuncCompleteFlags map[*flag.Flag]CompleteFunc)
Functions¶
funcComplete¶
func Complete(root *ffcli.Command, args []string, startFlags, descsbool) (words []string, dircobra.ShellCompDirective, errerror)
Complete returns the autocomplete suggestions for the root program and args.
The returned words do not necessarily need to be prefixed with the last argwhich is being completed. For example, '--bool-flag=' will have completions'true' and 'false'.
"HIDDEN: " is trimmed from the start of Flag Usage's.
Types¶
typeCompleteFunc¶
type CompleteFunc func([]string) ([]string,cobra.ShellCompDirective,error)