MCPcopy
hub / github.com/kubernetes/kubectl / GetPluginCommandGroup

Function GetPluginCommandGroup

pkg/cmd/plugin/plugin_completion.go:35–41  ·  view source on GitHub ↗
(kubectl *cobra.Command)

Source from the content-addressed store, hash-verified

33)
34
35func GetPluginCommandGroup(kubectl *cobra.Command) templates.CommandGroup {
36 // Find root level
37 return templates.CommandGroup{
38 Message: i18n.T("Subcommands provided by plugins:"),
39 Commands: registerPluginCommands(kubectl, false),
40 }
41}
42
43// SetupPluginCompletion adds a Cobra command to the command tree for each
44// plugin. This is only done when performing shell completion that relate

Callers 1

NewKubectlCommandFunction · 0.92

Calls 2

TFunction · 0.92
registerPluginCommandsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…