Make print statements consistent across all commands

This commit is contained in:
rainyuu 2021-01-31 12:33:31 +01:00
parent 99ca70ffeb
commit 49cb2ed889

View File

@ -83,15 +83,17 @@ func main() {
}
}
}
fmt.Println("> Downloading dependencies...")
fmt.Println("> Resolving dependencies...")
for _, d := range dependencies {
cli.InstallMod(d)
}
color.Green("> Complete!")
case "remove", "rm", "r":
fmt.Println("> Removing mods...")
for _, m := range os.Args[2:] {
cli.RemoveMod(m)
}
color.Green("> Complete!")
case "list", "ls", "li":
files, err := ioutil.ReadDir(utils.SystemInfo.PluginDir)
if err != nil {
@ -130,6 +132,7 @@ func main() {
color.Red("> API Cache out of date!")
api.UpdateAPICache()
}
color.Green("> Complete!")
case "toggle", "tm", "togglemods":
if tools.ToggleMods() {
color.Cyan("> Mods Enabled")
@ -148,11 +151,12 @@ func main() {
blue := color.New(color.FgBlue).SprintFunc()
fmt.Printf("%s %s\n", "Querying API for mods matching:", blue(query))
fmt.Printf("%s %s\n", "> Querying API for mods matching:", blue(query))
for _, mod := range api.SearchMods(query) {
fmt.Println(" -", mod.Target)
}
color.Green("> Complete!")
default:
fmt.Println("Unknown command, use 'r2go help' for a list of commands.")
}