diff options
Diffstat (limited to 'server/tools/src/main.rs')
-rw-r--r-- | server/tools/src/main.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/server/tools/src/main.rs b/server/tools/src/main.rs index bb8fbde2..31da0388 100644 --- a/server/tools/src/main.rs +++ b/server/tools/src/main.rs @@ -17,12 +17,18 @@ */ pub mod book; +pub mod book_html; pub mod diagram_layout; pub mod graph; pub mod graph_summary; pub mod recipe_diagram; -use crate::{book::book, graph::graph, graph_summary::graph_summary}; +use crate::{ + book::{book, print_book}, + book_html::render_html_book, + graph::graph, + graph_summary::graph_summary, +}; use anyhow::Result; use clap::Parser; @@ -31,6 +37,7 @@ enum Action { Graph, GraphSummary, Book, + BookHtml, } fn main() -> Result<()> { @@ -39,7 +46,8 @@ fn main() -> Result<()> { match action { Action::Graph => graph()?, Action::GraphSummary => graph_summary()?, - Action::Book => book()?, + Action::Book => print_book()?, + Action::BookHtml => render_html_book(book()?)?, } Ok(()) |