#[derive(Debug, Clone)]
pub enum CommandResult {
Ok,
Message(String),
Error(String),
Quit,
Handled,
}
impl CommandResult {
pub fn message(msg: impl Into<String>) -> Self {
Self::Message(msg.into())
}
pub fn error(msg: impl Into<String>) -> Self {
Self::Error(msg.into())
}
}