(fl Flags)
| 34 | ) |
| 35 | |
| 36 | func cmdUpgrade(fl Flags) (int, error) { |
| 37 | _, nonstandard, _, err := getModules() |
| 38 | if err != nil { |
| 39 | return caddy.ExitCodeFailedStartup, fmt.Errorf("unable to enumerate installed plugins: %v", err) |
| 40 | } |
| 41 | pluginPkgs, err := getPluginPackages(nonstandard) |
| 42 | if err != nil { |
| 43 | return caddy.ExitCodeFailedStartup, err |
| 44 | } |
| 45 | |
| 46 | return upgradeBuild(pluginPkgs, fl) |
| 47 | } |
| 48 | |
| 49 | func splitModule(arg string) (module, version string, err error) { |
| 50 | const versionSplit = "@" |
nothing calls this directly
no test coverage detected