Add reexport command

This commit is contained in:
Joscha 2022-10-03 18:07:30 +02:00
parent 266f001d46
commit e74eee89e6
3 changed files with 25 additions and 0 deletions

View file

@ -11,6 +11,8 @@ use clap::Parser;
enum Command {
/// Read sift data on stdin and output brood data.
Ingest,
/// Read and reexport brood data.
Reexport { to: PathBuf },
}
#[derive(Debug, Parser)]
@ -24,5 +26,6 @@ fn main() -> io::Result<()> {
let args = Args::parse();
match args.command {
Command::Ingest => commands::ingest(&args.datafile),
Command::Reexport { to } => commands::reexport(&args.datafile, &to),
}
}