tools: implement `v wipe-cache` to ease cleaning up the cache on windows
							parent
							
								
									3ee3c8b3ed
								
							
						
					
					
						commit
						8724749728
					
				|  | @ -0,0 +1,13 @@ | ||||||
|  | module main | ||||||
|  | 
 | ||||||
|  | import os | ||||||
|  | import v.vcache | ||||||
|  | 
 | ||||||
|  | fn main() { | ||||||
|  | 	mut cm := vcache.new_cache_manager([]) | ||||||
|  | 	cpath := cm.basepath | ||||||
|  | 	if os.exists(cpath) && os.is_dir(cpath) { | ||||||
|  | 		os.rmdir_all(cpath) | ||||||
|  | 	} | ||||||
|  | 	println('V cache folder $cpath was wiped.') | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue