bookyard 0.1.1

Build and locally edit a bookshelf for multiple mdBook projects.
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::PathBuf;

pub fn run(
    source: PathBuf,
    folder: String,
    title: Option<String>,
    id: Option<String>,
    tags: Vec<String>,
) -> anyhow::Result<()> {
    let registered = crate::commands::register::register_book(source, folder, title, id, tags)?;
    println!("added {}: {}", registered.id, registered.title);
    Ok(())
}