1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-14 09:12:24 +01:00

Add --cache-dir option

This commit is contained in:
sharkdp
2019-02-07 21:19:20 +01:00
committed by David Peter
parent 6523bbf62f
commit 54143d1403
3 changed files with 13 additions and 2 deletions

View File

@@ -216,6 +216,10 @@ pub fn config_dir() -> Cow<'static, str> {
PROJECT_DIRS.config_dir().to_string_lossy()
}
pub fn cache_dir() -> Cow<'static, str> {
PROJECT_DIRS.cache_dir().to_string_lossy()
}
pub fn clear_assets() {
print!("Clearing theme set cache ... ");
fs::remove_file(theme_set_path()).ok();