diff options
Diffstat (limited to 'argv.custom.go')
| -rw-r--r-- | argv.custom.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/argv.custom.go b/argv.custom.go index 63080d1..127d9a5 100644 --- a/argv.custom.go +++ b/argv.custom.go @@ -83,6 +83,14 @@ func (c CleanCmd) Match(partial string) []string { // sends the strings to bash or zsh that will be your options func (a args) SendCompletionStrings(pb *argvpb.Argv) { + if pb.IsMatch("mode.config") { + pb.SendStrings([]string{"mine", "favorites"}) + os.Exit(0) + } + if pb.IsMatch("mode") { + pb.SendStrings([]string{"once", "many", "mine", "favorites"}) + os.Exit(0) + } if pb.Cmd == "" { // these are base autocomplete strings matches := []string{"clean", "commit", "merge", "patch", "normal", "pull", "rebuild", "generate", "config"} |
