Skip to content

Commit

Permalink
feat: allow using a dedicated working dir for dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Aug 7, 2024
1 parent f51ff0e commit 9cc1302
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xtask/src/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ pub struct GenerateDump {
/// The name of the input configuration. Uses a default configuration if missing.
#[arg(short, long)]
input: Option<PathBuf>,

/// An optional specified working directory
#[arg(short, long)]
working_dir: Option<PathBuf>,
}

#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, schemars::JsonSchema)]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9cc1302

Please sign in to comment.