yog-cli 0.52.0

Yog build tool — `yog build` compiles a mod and packages it as .yog.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `yog import ...`: another loader's content made Yog's; what it wrote,
//! what to warn of.

pub(super) const WORDS: &[&str] = &["import"];

pub(super) fn run(rest: &[String]) -> Result<(), String> {
    let imported = yog_cli::content::import_command(rest)?;
    for w in &imported.warnings {
        eprintln!("warning: {w}");
    }
    for f in &imported.written {
        eprintln!("==> wrote {f}");
    }
    eprintln!(
        "    `yog content check` validates them; register with `yog_api::content!();` in src/lib.rs"
    );
    Ok(())
}