feat: new build command flag

- `uplc` to optionally dump raw uplc
This commit is contained in:
rvcas
2022-11-24 18:14:32 -05:00
committed by Lucas
parent 1c3511b073
commit 67d160230b
2 changed files with 23 additions and 9 deletions

View File

@@ -6,8 +6,12 @@ pub struct Args {
/// Path to project
#[clap(short, long)]
directory: Option<PathBuf>,
/// Also dump textual uplc
#[clap(short, long)]
uplc: bool,
}
pub fn exec(Args { directory }: Args) -> miette::Result<()> {
crate::with_project(directory, |p| p.build())
pub fn exec(Args { directory, uplc }: Args) -> miette::Result<()> {
crate::with_project(directory, |p| p.build(uplc))
}