Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + var Log = getLogger() + var PredictAnything = PredictFunc(func(Args) []string { ... }) + type Args struct + All []string + Completed []string + Last string + LastCompleted string + func (a Args) Directory() string + type Command struct + Args Predictor + Flags Flags + GlobalFlags Flags + Sub Commands + func (c *Command) Predict(a Args) []string + type Commands map[string]Command + func (c Commands) Predict(a Args) (prediction []string) + type Complete struct + Command Command + Out io.Writer + func New(name string, command Command) *Complete + func (c *Complete) Complete() bool + func (c *Complete) Run() bool + type Flags map[string]Predictor + func (f Flags) Predict(a Args) (prediction []string) + type PredictFunc func(Args) []string + func PredictFilesSet(files []string) PredictFunc + func (p PredictFunc) Predict(a Args) []string + type Predictor interface + Predict func(Args) []string + var PredictNothing Predictor + func PredictDirs(pattern string) Predictor + func PredictFiles(pattern string) Predictor + func PredictOr(predictors ...Predictor) Predictor + func PredictSet(options ...string) Predictor