1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-05 19:11:42 +00: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
+3 -1
View File
@@ -49,7 +49,7 @@ use ansi_term::Colour::Green;
use ansi_term::Style;
use app::{App, Config};
use assets::{clear_assets, config_dir, HighlightingAssets};
use assets::{cache_dir, clear_assets, config_dir, HighlightingAssets};
use config::config_file;
use controller::Controller;
use inputfile::InputFile;
@@ -98,6 +98,8 @@ fn run_cache_subcommand(matches: &clap::ArgMatches) -> Result<()> {
clear_assets();
} else if matches.is_present("config-dir") {
writeln!(io::stdout(), "{}", config_dir())?;
} else if matches.is_present("cache-dir") {
writeln!(io::stdout(), "{}", cache_dir())?;
}
Ok(())