amen 0.0.3

A CLI menu tool utilizing abbreviations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::error::Error;

#[derive(Debug)]
pub enum AmenError {
    NoneSelected,
    Internal(Box<dyn Error>),
}

impl std::fmt::Display for AmenError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            AmenError::NoneSelected => write!(f, "NoneSelected"),
            AmenError::Internal(error) => write!(f, "{}", error),
        }
    }
}

impl Error for AmenError {}