From 9cc130297586c91ac07691e6cb5df30457798a44 Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Wed, 7 Aug 2024 09:50:42 +0200 Subject: [PATCH] feat: allow using a dedicated working dir for dumps --- xtask/src/dataset.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xtask/src/dataset.rs b/xtask/src/dataset.rs index f0929d191..985a90768 100644 --- a/xtask/src/dataset.rs +++ b/xtask/src/dataset.rs @@ -21,6 +21,10 @@ pub struct GenerateDump { /// The name of the input configuration. Uses a default configuration if missing. #[arg(short, long)] input: Option, + + /// An optional specified working directory + #[arg(short, long)] + working_dir: Option, } #[derive(Clone, Debug, serde::Deserialize, serde::Serialize, schemars::JsonSchema)] @@ -71,7 +75,7 @@ impl GenerateDump { let importer = ImportRunner { db: db.clone(), storage: storage.into(), - working_dir: None, + working_dir: self.working_dir.clone(), }; // ingest documents