feat: update wfassoc-exec

This commit is contained in:
2026-04-17 15:24:22 +08:00
parent e9ca5dd5ec
commit a7a9a71e80
5 changed files with 87 additions and 83 deletions

View File

@@ -11,21 +11,24 @@ use thiserror::Error as TeError;
enum Error {
/// Error when parsing manifest TOML file.
#[error("{0}")]
Manifest(#[from] manifest::Error),
ParseManifest(#[from] manifest::ParseManifestError),
/// Error when parsing manifest into schema.
#[error("{0}")]
ParseSchema(#[from] manifest::ParseSchemaError),
}
/// Result type used in this executable.
type Result<T> = std::result::Result<T, Error>;
fn runner() -> Result<()> {
let raw_mf = manifest::RawManifest::from_file(Path::new(r#"D:\Repo\wfassoc\example\ppic.toml"#))?;
let mf = manifest::Manifest::from_file(Path::new(r#"D:\Repo\wfassoc\example\manifest\ppic.toml"#))?;
//let mf = raw_mf.to_checked()?;
println!("{:?}", raw_mf);
println!("{:?}", mf);
Ok(())
}
fn main() {
let cli = cli::parse();
//let cli = cli::parse();
runner().unwrap_or_else(|e| {
eprintln!("Runtime error: {}.", e);