From ea4e93f01d9e4ef17effae1e9a807bb1977865fe Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Mon, 2 Oct 2017 01:27:08 -0700 Subject: move everything to src/ --- commands/quit.rs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 commands/quit.rs (limited to 'commands/quit.rs') diff --git a/commands/quit.rs b/commands/quit.rs deleted file mode 100644 index 982c48f..0000000 --- a/commands/quit.rs +++ /dev/null @@ -1,18 +0,0 @@ -use tw; -use ::Queryer; - -use commands::Command; - -use std::process::exit; - -pub static QUIT: Command = Command { - keyword: "q", - params: 0, - exec: quit -}; - -fn quit(_line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer) { - println!("Bye bye!"); - tweeter.store_cache(); - exit(0); -} -- cgit v1.1