Users of bash/zsh will have completion config enabled in the next shell session start. This commit provides completion for commands and all subcommands, their flags and completion of filesystems paths, mc aliases, buckets and prefixes.
13 lines
257 B
Go
13 lines
257 B
Go
package complete
|
|
|
|
// PredictSet expects specific set of terms, given in the options argument.
|
|
func PredictSet(options ...string) Predictor {
|
|
return predictSet(options)
|
|
}
|
|
|
|
type predictSet []string
|
|
|
|
func (p predictSet) Predict(a Args) []string {
|
|
return p
|
|
}
|