Add philosophy-game command

This commit is contained in:
Joscha 2024-08-26 01:29:45 +02:00
parent 8642778402
commit ed611d0841
3 changed files with 128 additions and 0 deletions

View file

@ -29,6 +29,8 @@ enum Command {
},
/// Find the longest shortest path starting at an article.
LongestShortestPath { from: String },
/// Analyze articles using "Philosophy Game" rules.
PhilosophyGame,
/// Print all page titles.
ListPages,
}
@ -59,6 +61,7 @@ fn main() -> io::Result<()> {
Command::LongestShortestPath { from } => {
commands::longest_shortest_path::run(&args.datafile, &from)
}
Command::PhilosophyGame => commands::philosophy_game::run(&args.datafile),
Command::ListPages => commands::list_pages::run(&args.datafile),
}
}