clockwork-cli 2.0.19

Command line interface for Clockwork
use thiserror::Error;

#[derive(Debug, Error)]
pub enum CliError {
    #[error("Account not found: {0}")]
    AccountNotFound(String),
    #[error("Account data could not be parsed: {0}")]
    AccountDataNotParsable(String),
    #[error("Bad client: {0}")]
    BadClient(String),
    #[error("Bad parameter: {0}")]
    BadParameter(String),
    #[error("This codepath hasn't been implemented yet")]
    NotImplemented,
    #[error("Command not recognized: {0}")]
    CommandNotRecognized(String),
    #[error("Transaction failed with error: {0}")]
    FailedTransaction(String),
    #[error("Failed to start localnet with error: {0}")]
    FailedLocalnet(String),
    #[error("Invalid address")]
    InvalidAddress,
    #[error("Program file does not exist")]
    InvalidProgramFile,
    #[error("No default signer found in {0}, \
     run `solana-keygen new`, or `solana config set —keypair <FILEPATH>`")]
    KeypairNotFound(String),
}