Harden operator command recovery and interop
This commit is contained in:
parent
4ded8a3a43
commit
c13820414f
5 changed files with 381 additions and 20 deletions
13
epiphany-core/src/bin/epiphany-operator-command-fixture.rs
Normal file
13
epiphany-core/src/bin/epiphany-operator-command-fixture.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use anyhow::{Context, Result};
|
||||
use epiphany_core::write_operator_command_interop_fixture;
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let output = std::env::args_os()
|
||||
.nth(1)
|
||||
.map(PathBuf::from)
|
||||
.context("usage: epiphany-operator-command-fixture <output-directory>")?;
|
||||
let manifest = write_operator_command_interop_fixture(&output)?;
|
||||
println!("{}", serde_json::to_string_pretty(&manifest)?);
|
||||
Ok(())
|
||||
}
|
||||
Reference in a new issue