use thiserror::Error;
#[derive(Debug, Error)]
pub enum ConsoleError {
#[error("command `{0}` was not found; run with no arguments to list commands")]
NotFound(String),
#[error("invalid `--env` value: {0}")]
InvalidEnvironment(String),
#[error("command failed: {0}")]
Failed(String),
#[error("console I/O failed: {0}")]
Io(#[from] std::io::Error),
}