1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: implement v wipe-cache to ease cleaning up the cache on windows

This commit is contained in:
Delyan Angelov 2020-12-30 21:36:54 +02:00
parent 3ee3c8b3ed
commit 8724749728
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 14 additions and 0 deletions

13
cmd/tools/vwipe-cache.v Normal file
View File

@ -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.')
}

View File

@ -30,6 +30,7 @@ const (
'build-examples',
'build-vbinaries',
'setup-freetype',
'wipe-cache',
'doc',
'doctor',
]