MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / findCommand

Function findCommand

multiapps_plugin.go:82–90  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

80}
81
82func findCommand(name string) (commands.Command, error) {
83 for _, command := range Commands {
84 pluginCommand := command.GetPluginCommand()
85 if pluginCommand.Name == name || pluginCommand.Alias == name {
86 return command, nil
87 }
88 }
89 return nil, fmt.Errorf("Could not find command with name %q", name)
90}
91
92func parseSemver(version string) plugin.VersionType {
93 mmb := strings.Split(version, ".")

Callers 1

RunMethod · 0.85

Calls 1

GetPluginCommandMethod · 0.65

Tested by

no test coverage detected