MCPcopy Create free account
hub / github.com/helm/helm / compInstall

Function compInstall

pkg/cmd/install.go:369–378  ·  view source on GitHub ↗

Provide dynamic auto-completion for the install and template commands

(args []string, toComplete string, client *action.Install)

Source from the content-addressed store, hash-verified

367
368// Provide dynamic auto-completion for the install and template commands
369func 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}

Callers 2

newInstallCmdFunction · 0.85
newTemplateCmdFunction · 0.85

Calls 1

compListChartsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…