kazari-cli 0.2.0

Command line for Kazari: upgrade code blocks in built HTML sites, render code, Markdown and Typst with VS Code themes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::Path;

use crate::Fail;
use crate::engine::EngineArgs;

pub fn run_css(args: EngineArgs) -> Result<u8, Fail> {
    let engine = args.build(Path::new("."), crate::highlighter()?)?;
    print!("{}", engine.kazari.css());
    Ok(0)
}

pub fn run_js(args: EngineArgs) -> Result<u8, Fail> {
    let engine = args.build(Path::new("."), crate::highlighter()?)?;
    print!("{}", engine.kazari.js());
    Ok(0)
}