MCPcopy
hub / github.com/cloudfoundry/cli / Execute

Method Execute

command/plugin/plugins_command.go:39–48  ·  view source on GitHub ↗
([]string)

Source from the content-addressed store, hash-verified

37}
38
39func (cmd PluginsCommand) Execute([]string) error {
40 switch {
41 case cmd.Outdated:
42 return cmd.displayOutdatedPlugins()
43 case cmd.Checksum:
44 return cmd.displayPluginChecksums(cmd.Config.Plugins())
45 default:
46 return cmd.displayPluginCommands(cmd.Config.Plugins())
47 }
48}
49
50func (cmd PluginsCommand) displayPluginChecksums(plugins []configv3.Plugin) error {
51 cmd.UI.DisplayText("Computing sha1 for installed plugins, this may take a while...")

Callers

nothing calls this directly

Calls 4

displayPluginCommandsMethod · 0.95
PluginsMethod · 0.65

Tested by

no test coverage detected