1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::path::PathBuf; #[derive(clap::Args)] /// Build an Aiken project pub struct Args { /// Path to project directory: Option<PathBuf>, /// Also dump textual uplc #[clap(short, long)] uplc: bool, } pub fn exec(Args { directory, uplc }: Args) -> miette::Result<()> { crate::with_project(directory, |p| p.build(uplc)) }