toha 0.4.1

Generate projects and files from templates through one interview for people, scripts, agents, and Rust callers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// ---
// relationships:
//   implements: command-line-interface
// ---
pub use toha::resolve::{
    ResolveError, ResolvedTemplate, applied_revision, formal_name, resolve_template,
};
pub fn load_context(
    dirs: &crate::Dirs,
    cwd: &std::path::Path,
) -> Result<(toha::config::Config, toha::registry::Registry), ResolveError> {
    let (config, registry, warnings) = toha::resolve::load_context(dirs, cwd)?;
    for warning in warnings {
        eprintln!("warning: {warning}");
    }
    Ok((config, registry))
}