feat(cli): use commandline object all the way

This commit is contained in:
bergquist
2016-03-08 14:54:18 +01:00
parent da2b65cd7c
commit 95f3e52064
3 changed files with 7 additions and 6 deletions
@@ -24,7 +24,7 @@ func upgradeCommand(c CommandLine) error {
if localPlugin.Id == v.Id {
if ShouldUpgrade(localPlugin.Info.Version, v) {
s.RemoveInstalledPlugin(pluginDir, pluginName)
return InstallPlugin(localPlugin.Id, pluginDir, "", c.GlobalString("repo"))
return InstallPlugin(localPlugin.Id, "", c)
}
}
}