tech(cli): lets use the fact that we have a compiler

This commit is contained in:
bergquist
2016-06-24 20:14:58 +02:00
parent 88e208bddf
commit 07be2c89a3
8 changed files with 29 additions and 10 deletions

View File

@ -7,7 +7,7 @@ import (
)
func upgradeCommand(c CommandLine) error {
pluginsDir := c.GlobalString("pluginsDir")
pluginsDir := c.PluginDirectory()
pluginName := c.Args().First()
localPlugin, err := s.ReadPlugin(pluginsDir, pluginName)
@ -16,7 +16,7 @@ func upgradeCommand(c CommandLine) error {
return err
}
v, err2 := s.GetPlugin(localPlugin.Id, c.GlobalString("repo"))
v, err2 := s.GetPlugin(localPlugin.Id, c.RepoDirectory())
if err2 != nil {
return err2