List links to and from an article

This commit is contained in:
Joscha 2024-12-30 13:12:14 +01:00
parent f5f4f99a2f
commit 49665f74ce
3 changed files with 94 additions and 0 deletions

View file

@ -44,6 +44,11 @@ enum Command {
},
/// Print all page titles.
ListPages,
/// Print all links.
ListLinks {
/// The page to inspect.
page: String,
},
}
#[derive(Debug, Parser)]
@ -76,5 +81,6 @@ fn main() -> io::Result<()> {
commands::philosophy_game::run(&args.datafile, subcmd)
}
Command::ListPages => commands::list_pages::run(&args.datafile),
Command::ListLinks { page } => commands::list_links::run(&args.datafile, &page),
}
}