MCPcopy Index your code
hub / github.com/docker/cli / Name

Method Name

cli-plugins/hooks/template.go:60–62  ·  view source on GitHub ↗

Name returns the name of the (sub)command for which the hook was invoked. It's used for backward-compatibility with old templates.

()

Source from the content-addressed store, hash-verified

58//
59// It's used for backward-compatibility with old templates.
60func (c commandInfo) Name() string {
61 return c.command()
62}
63
64// command returns the name of the (sub)command for which the hook was invoked.
65func (c commandInfo) command() string {

Callers 13

TestVisitAllFunction · 0.45
RunPluginFunction · 0.45
newPluginCommandFunction · 0.45
commandMethod · 0.45
newPluginFunction · 0.45
TestListPluginCandidatesFunction · 0.45
TestGetPluginFunction · 0.45
TestListPluginsIsSortedFunction · 0.45
RunCLICommandHooksFunction · 0.45

Calls 1

commandMethod · 0.95

Tested by 6

TestVisitAllFunction · 0.36
TestListPluginCandidatesFunction · 0.36
TestGetPluginFunction · 0.36
TestListPluginsIsSortedFunction · 0.36