cli-app-template 0.2.2

Starter template for CLI applications
1
2
3
4
5
6
7
8
9
10
11
use std::io;

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

#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("config error: {0}")]
    Config(#[from] config::ConfigError),
    #[error("io error: {0}")]
    Io(#[from] io::Error),
}