aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-07 15:01:41 +0000
committerAleksey Kladov <[email protected]>2020-01-07 15:45:57 +0000
commit6a7db8c701c329e66b135dd7c2b9beebf4c77fa6 (patch)
tree6c213c6ba2429dcab1a7b17bd29ab26f9901d8e2 /xtask/src/main.rs
parent5e7995eeb7b7ab4cf0d80ddfa2d20e506216f895 (diff)
Share cache cleaning logic between OSes
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r--xtask/src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 9309b2fbd..053453e6e 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -14,7 +14,7 @@ use pico_args::Arguments;
14use xtask::{ 14use xtask::{
15 codegen::{self, Mode}, 15 codegen::{self, Mode},
16 install::{ClientOpt, InstallCmd, ServerOpt}, 16 install::{ClientOpt, InstallCmd, ServerOpt},
17 pre_commit, run_clippy, run_fuzzer, run_rustfmt, Result, 17 pre_commit, run_clippy, run_fuzzer, run_pre_cache, run_rustfmt, Result,
18}; 18};
19 19
20fn main() -> Result<()> { 20fn main() -> Result<()> {
@@ -88,6 +88,10 @@ FLAGS:
88 args.finish()?; 88 args.finish()?;
89 run_fuzzer() 89 run_fuzzer()
90 } 90 }
91 "pre-cache" => {
92 args.finish()?;
93 run_pre_cache()
94 }
91 _ => { 95 _ => {
92 eprintln!( 96 eprintln!(
93 "\ 97 "\