Make print statements consistent across all commands
This commit is contained in:
parent
99ca70ffeb
commit
49cb2ed889
8
main.go
8
main.go
@ -83,15 +83,17 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Println("> Downloading dependencies...")
|
fmt.Println("> Resolving dependencies...")
|
||||||
for _, d := range dependencies {
|
for _, d := range dependencies {
|
||||||
cli.InstallMod(d)
|
cli.InstallMod(d)
|
||||||
}
|
}
|
||||||
color.Green("> Complete!")
|
color.Green("> Complete!")
|
||||||
case "remove", "rm", "r":
|
case "remove", "rm", "r":
|
||||||
|
fmt.Println("> Removing mods...")
|
||||||
for _, m := range os.Args[2:] {
|
for _, m := range os.Args[2:] {
|
||||||
cli.RemoveMod(m)
|
cli.RemoveMod(m)
|
||||||
}
|
}
|
||||||
|
color.Green("> Complete!")
|
||||||
case "list", "ls", "li":
|
case "list", "ls", "li":
|
||||||
files, err := ioutil.ReadDir(utils.SystemInfo.PluginDir)
|
files, err := ioutil.ReadDir(utils.SystemInfo.PluginDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -130,6 +132,7 @@ func main() {
|
|||||||
color.Red("> API Cache out of date!")
|
color.Red("> API Cache out of date!")
|
||||||
api.UpdateAPICache()
|
api.UpdateAPICache()
|
||||||
}
|
}
|
||||||
|
color.Green("> Complete!")
|
||||||
case "toggle", "tm", "togglemods":
|
case "toggle", "tm", "togglemods":
|
||||||
if tools.ToggleMods() {
|
if tools.ToggleMods() {
|
||||||
color.Cyan("> Mods Enabled")
|
color.Cyan("> Mods Enabled")
|
||||||
@ -148,11 +151,12 @@ func main() {
|
|||||||
|
|
||||||
blue := color.New(color.FgBlue).SprintFunc()
|
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) {
|
for _, mod := range api.SearchMods(query) {
|
||||||
fmt.Println(" -", mod.Target)
|
fmt.Println(" -", mod.Target)
|
||||||
}
|
}
|
||||||
|
color.Green("> Complete!")
|
||||||
default:
|
default:
|
||||||
fmt.Println("Unknown command, use 'r2go help' for a list of commands.")
|
fmt.Println("Unknown command, use 'r2go help' for a list of commands.")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user