Fix "pull" command to forcefully update api cache
This commit is contained in:
parent
823f678757
commit
61fc43c41a
9
main.go
9
main.go
@ -106,14 +106,9 @@ func main() {
|
|||||||
|
|
||||||
color.Green("> Complete!")
|
color.Green("> Complete!")
|
||||||
case "pull":
|
case "pull":
|
||||||
|
color.Red("> Forcefully updating API Cache")
|
||||||
api.InitAPI()
|
api.InitAPI()
|
||||||
color.Cyan("> Checking API Cache")
|
api.UpdateAPICache()
|
||||||
if api.CheckAPICache() == 0 {
|
|
||||||
color.Green("> API Cache is up to date!")
|
|
||||||
} else {
|
|
||||||
color.Red("> API Cache out of date!")
|
|
||||||
api.UpdateAPICache()
|
|
||||||
}
|
|
||||||
case "toggle", "tm", "togglemods":
|
case "toggle", "tm", "togglemods":
|
||||||
if tools.ToggleMods() {
|
if tools.ToggleMods() {
|
||||||
color.Cyan("> Mods Enabled")
|
color.Cyan("> Mods Enabled")
|
||||||
|
Loading…
Reference in New Issue
Block a user