List links to and from an article
This commit is contained in:
parent
f5f4f99a2f
commit
49665f74ce
3 changed files with 94 additions and 0 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue