fix(global): Add windows support(need testing), fix userInput, refacto
This commit is contained in:
@ -16,7 +16,7 @@ import (
|
||||
var version = "0.0.1"
|
||||
var verbose = false
|
||||
var acceptAll = false
|
||||
var dependencyList = []dependencies.Dependency{
|
||||
var dependencyList = []dependencies.DependencyInterface{
|
||||
dependencies.Git{},
|
||||
dependencies.Golang{},
|
||||
dependencies.Swagger{},
|
||||
|
@ -79,7 +79,7 @@ func runUpgradeAction(cmd *cobra.Command, args []string) {
|
||||
answer := helpers.YesOrNoInput()
|
||||
if !answer {
|
||||
log.Infof("Where do you want to install %s ?", dependency.GetName())
|
||||
installDirectory = helpers.IsValidPathInput()
|
||||
installDirectory = helpers.PathInput()
|
||||
}
|
||||
|
||||
} else {
|
||||
@ -96,7 +96,7 @@ func runUpgradeAction(cmd *cobra.Command, args []string) {
|
||||
return
|
||||
}
|
||||
log.Infof("Where do you want to install %s ?", dependency.GetName())
|
||||
installDirectory = helpers.IsValidPathInput()
|
||||
installDirectory = helpers.PathInput()
|
||||
}
|
||||
|
||||
log.Infof("%s", dependency.DescribeInstall(installDirectory))
|
||||
|
Reference in New Issue
Block a user