Documentation
¶
Overview ¶
Package predict holds the completion predictors a command tree is built from.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Nothing complete.Predictor = complete.PredictFunc(nil)
Nothing predicts no completions, which is what a boolean flag wants.
View Source
var Something complete.Predictor = complete.PredictFunc( func(string) []string { return nil }, )
Something predicts nothing but marks a flag as taking a value, so the shell does not fall back to offering subcommands where an argument belongs.
Functions ¶
func Files ¶
Files predicts paths matching a glob pattern, as "*.mmdb". Use "*" for any file.
Directories are always offered whatever the pattern, since a path into a directory has to be typed before the file inside it can match.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.