-
Couldn't load subscription status.
- Fork 70
Open
Labels
Description
var force = flag.String("f", "", "force")
...
// Auto completion
cmd := &complete.Command{
Sub: map[string]*complete.Command{
"update": {
Sub: offPred,
Flags: map[string]complete.Predictor{
"f": predict.Nothing,
},
},
},
}
cmd.Complete("<cmd>")On the latest version, when I execute this code, only Sub: will get suggested. However, if I remove the Sub: entirely, then Flags: show up. I have the feeling I'm doing it wrong, but I've boiled it down to this, at least.
PS: I'm using Kong as well, and the -h flag always shows up automatically (not sure if that's Kong or this package), but that flag shows up fine.