Provide dynamic auto-completion for the install and template commands
(args []string, toComplete string, client *action.Install)
| 367 | |
| 368 | // Provide dynamic auto-completion for the install and template commands |
| 369 | func compInstall(args []string, toComplete string, client *action.Install) ([]string, cobra.ShellCompDirective) { |
| 370 | requiredArgs := 1 |
| 371 | if client.GenerateName { |
| 372 | requiredArgs = 0 |
| 373 | } |
| 374 | if len(args) == requiredArgs { |
| 375 | return compListCharts(toComplete, true) |
| 376 | } |
| 377 | return nil, cobra.ShellCompDirectiveNoFileComp |
| 378 | } |
no test coverage detected
searching dependent graphs…