mod commands;
#[cfg(test)]
mod tests;
use crate::cli::common::CurrentUnixSecsError;
pub use commands::run;
use std::io;
use thiserror::Error as ThisError;
#[derive(Debug, ThisError)]
pub enum IcrcCommandError {
#[error("{0}")]
Usage(String),
#[error(transparent)]
Clock(#[from] CurrentUnixSecsError),
#[error(transparent)]
Query(#[from] ic_query::icrc::IcrcError),
#[error(transparent)]
Io(#[from] io::Error),
#[error(transparent)]
Json(#[from] serde_json::Error),
}