(name string)
| 80 | } |
| 81 | |
| 82 | func 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 | |
| 92 | func parseSemver(version string) plugin.VersionType { |
| 93 | mmb := strings.Split(version, ".") |