Add unfinished path command
This commit is contained in:
parent
345462915b
commit
853e09517f
3 changed files with 38 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ enum Command {
|
|||
Ingest,
|
||||
/// Read and reexport brood data.
|
||||
Reexport { to: PathBuf },
|
||||
/// Find a path from one article to another.
|
||||
Path { from: String, to: String },
|
||||
}
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
|
|
@ -27,5 +29,6 @@ fn main() -> io::Result<()> {
|
|||
match args.command {
|
||||
Command::Ingest => commands::ingest(&args.datafile),
|
||||
Command::Reexport { to } => commands::reexport(&args.datafile, &to),
|
||||
Command::Path { from, to } => commands::path(&args.datafile, &from, &to),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue