kubemgr 0.3.0

The fastest way to merge Kubernetes configuration files 🏎.
Documentation
use std::fmt;

#[derive(Debug)]
pub enum KubeMergeError {
    NoContent(String),
    FileNotFound(String),
    FileReadError(String),
    ParseError(String),
    WriteError(String),
    UserCancelled(String),
    InsufficientFiles(String),
    SomeOtherError,
}

impl fmt::Display for KubeMergeError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            KubeMergeError::ParseError(msg) => write!(f, "{}", msg),
            _ => write!(f, "An unknown KubeMergeError occurred"),
        }
    }
}