clap_runner/command/
error.rs

1use faststr::FastStr;
2
3#[derive(Debug, thiserror::Error)]
4pub enum Error {
5    #[error("command name illegal: {hint}")]
6    CommandNameIllegal { hint: FastStr },
7    #[error("param parse failed: {hint}")]
8    Param { hint: FastStr },
9    #[error(transparent)]
10    Unknown(#[from] anyhow::Error),
11}
12
13pub(super) type Result<T> = std::result::Result<T, Error>;