parent
87367644cc
commit
94723e9d12
@ -1,9 +1,11 @@
|
||||
mod command;
|
||||
mod parse;
|
||||
mod parser_error;
|
||||
mod quit;
|
||||
mod set;
|
||||
|
||||
pub use command::Command;
|
||||
pub use parse::Parse;
|
||||
pub use parser_error::ParserError;
|
||||
pub use quit::*;
|
||||
pub use set::*;
|
||||
|
@ -0,0 +1,11 @@
|
||||
use mio::Token;
|
||||
|
||||
use crate::command::Command;
|
||||
use crate::database::Db;
|
||||
use crate::queue::SendQueue;
|
||||
|
||||
impl Command {
|
||||
pub fn dispatch_quit(&self, _: String, token: Token, _: &mut Db) -> SendQueue {
|
||||
SendQueue(vec![(token, "Goodbye".into(), false)].into())
|
||||
}
|
||||
}
|
Loading…
Reference in new issue