2025-05-04 12:06:47 +02:00
|
|
|
#[derive(Debug, Eq, PartialEq)]
|
2025-05-02 20:35:45 +02:00
|
|
|
pub enum MetaCommand {
|
|
|
|
|
Exit,
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-02 20:46:08 +02:00
|
|
|
pub struct MetaCommandExecuteResult {
|
|
|
|
|
pub should_exit: bool,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl MetaCommand {
|
|
|
|
|
pub fn execute(&self) -> MetaCommandExecuteResult {
|
|
|
|
|
match self {
|
|
|
|
|
MetaCommand::Exit => MetaCommandExecuteResult { should_exit: true },
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|