For example, I have an argument that is a repeated list of strings:
var predictors = map[string]complete.Predictor{
"string": complete.PredictSet("test1","test2"),
}
type CLI struct {
Repeated []string `name:"repeated" predictor:"string"`
}
...
I'd like the complete to both test1 and test2 below:
> ./cli -repeated test1,test2
At the command line, completion only works for the very first element (test1 in the example above), after adding the separator, we no longer get completions.
For example, I have an argument that is a repeated list of strings:
I'd like the complete to both
test1
andtest2
below:At the command line, completion only works for the very first element (
test1
in the example above), after adding the separator, we no longer get completions.Is there a way to achieve that?