1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use inquire::InquireError;
use thiserror::Error;
pub type ClapIntResult<T> = core::result::Result<T, ClapIntError>;
#[derive(Error, Debug)]
pub enum ClapIntError {
#[error("{0}")]
Generic(String),
#[error("{0}")]
Inquire(#[from] InquireError),
#[error("{0}")]
Clap(#[from] clap::Error),
}