miden-client-cli 0.17.0-rc.1

The official command line client for interacting with the Miden network
Documentation
pub mod account;
pub mod address;
pub mod call;
pub mod clear_config;
pub mod exec;
pub mod export;
pub mod import;
pub mod info;
pub mod init;
pub mod keys;
pub mod network_note_status;
pub mod new_account;
pub mod new_transactions;
pub mod notes;
pub mod sync;
pub mod tags;
pub mod transactions;

#[cfg(any())]
use crate::errors::CliError;

#[cfg(any())]
fn report_replay_snapshot_write(
    recorder: &miden_debug::ReplaySnapshotRecorder,
    requested_path: &std::path::Path,
) -> Result<(), CliError> {
    match recorder.take() {
        Some(Ok(write)) => {
            println!("Replay it offline with `miden-debug --replay {}`.", write.path);
            Ok(())
        },
        Some(Err(err)) => Err(CliError::ReplaySnapshot(Box::new(err))),
        None => Err(CliError::ReplaySnapshot(
            format!(
                "debug session ended without writing replay snapshot to {}",
                requested_path.display()
            )
            .into(),
        )),
    }
}