cloudcover-cli 0.2.2

Command-line interface for analyzing cloud SDK usage and generating permission policies
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt;

pub(crate) enum CliError {
    Help,
    Usage(String),
    Runtime(String),
}

impl fmt::Debug for CliError {
    fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            Self::Help => formatter.write_str("Help"),
            Self::Usage(message) => formatter.debug_tuple("Usage").field(message).finish(),
            Self::Runtime(message) => formatter.debug_tuple("Runtime").field(message).finish(),
        }
    }
}