(plugin Plugin)
| 259 | } |
| 260 | |
| 261 | func PluginInstallType(plugin Plugin) string { |
| 262 | installType := strings.ToLower(strings.TrimSpace(plugin.Install.Type)) |
| 263 | if installType == "" { |
| 264 | return InstallTypeGitHubRelease |
| 265 | } |
| 266 | return installType |
| 267 | } |
| 268 | |
| 269 | func NormalizeInstallPlan(plan InstallPlan) InstallPlan { |
| 270 | plan.Type = strings.ToLower(strings.TrimSpace(plan.Type)) |
no outgoing calls