feat: new build command flag
- `uplc` to optionally dump raw uplc
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user