diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-19 22:32:50 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-19 22:40:39 +0200 |
commit | 42752bf88f962d8ed9210846a7c17798ae03d6f2 (patch) | |
tree | 8ae3c1b2e2b08a775a638222a697ed4b0e618bad /server/tools/src/main.rs | |
parent | 402067b8317195fd2bc4ab4d92b5ace94fadb7c0 (diff) | |
download | hurrycurry-42752bf88f962d8ed9210846a7c17798ae03d6f2.tar hurrycurry-42752bf88f962d8ed9210846a7c17798ae03d6f2.tar.bz2 hurrycurry-42752bf88f962d8ed9210846a7c17798ae03d6f2.tar.zst |
start book html
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(()) |