feat(cli): print Export json to stdout
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
This commit is contained in:
parent
dac3308620
commit
79ccc55499
|
@ -26,9 +26,11 @@ pub fn exec(
|
|||
with_project(directory.as_deref(), false, |p| {
|
||||
p.compile(Options::default())?;
|
||||
|
||||
let raw_uplc = p.export(&module, &name)?;
|
||||
let export = p.export(&module, &name)?;
|
||||
|
||||
println!("{}", raw_uplc);
|
||||
let json = serde_json::to_string_pretty(&export).unwrap();
|
||||
|
||||
println!("{}", json);
|
||||
|
||||
Ok(())
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue