1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-27 17:41:42 +00:00

Add new '--blank' option for 'bat cache --init'

closes #206
This commit is contained in:
sharkdp
2018-08-20 21:12:52 +02:00
committed by David Peter
parent 6882fc1512
commit 2df3305b94
4 changed files with 30 additions and 4 deletions
+3 -1
View File
@@ -73,7 +73,9 @@ fn run() -> Result<bool> {
let source_dir = cache_matches.value_of("source").map(Path::new);
let target_dir = cache_matches.value_of("target").map(Path::new);
let assets = HighlightingAssets::from_files(source_dir)?;
let blank = cache_matches.is_present("blank");
let assets = HighlightingAssets::from_files(source_dir, blank)?;
assets.save(target_dir)?;
} else if cache_matches.is_present("clear") {
clear_assets();