use marine_module_info_parser::ModuleInfoError;
use marine_it_generator::ITGeneratorError;
use marine_it_parser::ITParserError;
use thiserror::Error as ThisError;
#[derive(Debug, ThisError)]
pub enum CLIError {
#[error("{0} is an unknown command")]
NoSuchCommand(String),
#[error("{0}")]
VersionEmbeddingError(#[from] ModuleInfoError),
#[error("{0}")]
ITGeneratorError(#[from] ITGeneratorError),
#[error("{0}")]
ITParserError(#[from] ITParserError),
#[error("{0}")]
WasmCompilationError(String),
#[error("{0:?}")]
IOError(#[from] std::io::Error),
}