pub fn invoke<I: Serialize, O: DeserializeOwned>(
tool: &str,
input: &I,
spec_dir: &Path,
) -> Result<O, LeanError>Expand description
Invoke a genesis CLI subcommand by piping JSON to stdin and reading JSON from stdout. Maps tool names like “genesis_select_targets” to “genesis select-targets”.