Fix "pull" command to forcefully update api cache
This commit is contained in:
		
							parent
							
								
									823f678757
								
							
						
					
					
						commit
						61fc43c41a
					
				
							
								
								
									
										7
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								main.go
									
									
									
									
									
								
							@ -106,14 +106,9 @@ func main() {
 | 
			
		||||
 | 
			
		||||
		color.Green("> Complete!")
 | 
			
		||||
	case "pull":
 | 
			
		||||
		color.Red("> Forcefully updating API Cache")
 | 
			
		||||
		api.InitAPI()
 | 
			
		||||
		color.Cyan("> Checking API Cache")
 | 
			
		||||
		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":
 | 
			
		||||
		if tools.ToggleMods() {
 | 
			
		||||
			color.Cyan("> Mods Enabled")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user