MCPcopy
hub / github.com/helm/helm / noMoreArgsComp

Function noMoreArgsComp

pkg/cmd/completion.go:220–223  ·  view source on GitHub ↗

noMoreArgsComp deactivates file completion when doing argument shell completion. It also provides some ActiveHelp to indicate no more arguments are accepted.

()

Source from the content-addressed store, hash-verified

218// noMoreArgsComp deactivates file completion when doing argument shell completion.
219// It also provides some ActiveHelp to indicate no more arguments are accepted.
220func noMoreArgsComp() ([]string, cobra.ShellCompDirective) {
221 activeHelpMsg := "This command does not take any more arguments (but may accept flags)."
222 return cobra.AppendActiveHelp(nil, activeHelpMsg), cobra.ShellCompDirectiveNoFileComp
223}

Callers 15

newEnvCmdFunction · 0.85
newPushCmdFunction · 0.85
newGetAllCmdFunction · 0.85
newStatusCmdFunction · 0.85
newGetMetadataCmdFunction · 0.85
newRepoIndexCmdFunction · 0.85
noMoreArgsCompFuncFunction · 0.85
newReleaseTestCmdFunction · 0.85
newGetManifestCmdFunction · 0.85
newRepoAddCmdFunction · 0.85
newPluginInstallCmdFunction · 0.85
newVerifyCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…