clap-runner 0.1.1

[badawsome] make a cli integration, deps on clap
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use faststr::FastStr;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("command not found: {0}")]
    CommandNotFound(FastStr),
    #[error(transparent)]
    CommandBuildFail(#[from] super::command::Error),
    #[error(transparent)]
    Unknown(#[from] anyhow::Error),
}

pub(super) type Result<T> = std::result::Result<T, Error>;