Move commands to own module

This commit is contained in:
Joscha 2022-10-03 18:04:24 +02:00
parent 969fd01914
commit 266f001d46
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
pub mod commands;
mod data; mod data;
mod ingest;
mod util; mod util;
use std::io; use std::io;
@ -9,7 +9,7 @@ use clap::Parser;
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
enum Command { enum Command {
/// Read sift data on stdin and output brood data on stdout. /// Read sift data on stdin and output brood data.
Ingest, Ingest,
} }
@ -23,6 +23,6 @@ struct Args {
fn main() -> io::Result<()> { fn main() -> io::Result<()> {
let args = Args::parse(); let args = Args::parse();
match args.command { match args.command {
Command::Ingest => ingest::ingest(&args.datafile), Command::Ingest => commands::ingest(&args.datafile),
} }
} }