command: add autocomplete for init -short flag

This commit is contained in:
Nick Ethier
2018-05-10 23:19:08 -04:00
parent 17abb1b5b4
commit 32ec72d97d

View File

@@ -5,6 +5,8 @@ import (
"io/ioutil"
"os"
"strings"
"github.com/posener/complete"
)
const (
@@ -39,6 +41,13 @@ func (c *JobInitCommand) Synopsis() string {
return "Create an example job file"
}
func (c *JobInitCommand) AutocompleteFlags() complete.Flags {
return mergeAutocompleteFlags(c.Meta.AutocompleteFlags(FlagSetClient),
complete.Flags{
"-short": complete.PredictNothing,
})
}
func (c *JobInitCommand) Name() string { return "job init" }
func (c *JobInitCommand) Run(args []string) int {