(serviceVersion string)
| 555 | } |
| 556 | |
| 557 | func (b CommandBuilder) createAutoCompleteCommand(serviceVersion string) *CommandDefinition { |
| 558 | flags := NewFlagBuilder(). |
| 559 | AddHelpFlag(). |
| 560 | Build() |
| 561 | |
| 562 | subcommands := []*CommandDefinition{ |
| 563 | b.createAutoCompleteEnableCommand(), |
| 564 | b.createAutoCompleteCompleteCommand(serviceVersion), |
| 565 | } |
| 566 | |
| 567 | return NewCommand("autocomplete", "Autocompletion", "Commands for autocompletion"). |
| 568 | WithFlags(flags). |
| 569 | WithSubcommands(subcommands) |
| 570 | } |
| 571 | |
| 572 | func (b CommandBuilder) createConfigCommand() *CommandDefinition { |
| 573 | const flagNameAuth = "auth" |
no test coverage detected