From 73dc5dda6b8ca8a8bdae0f620442e359871b0152 Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Sat, 11 Nov 2017 04:35:35 -0800 Subject: start adding help reference --- src/commands/mod.rs | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'src/commands/mod.rs') diff --git a/src/commands/mod.rs b/src/commands/mod.rs index f7536a0..f2160f9 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -4,9 +4,11 @@ use ::Queryer; pub struct Command { pub keyword: &'static str, pub params: u8, - pub exec: fn(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) + pub exec: fn(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer), + pub help_str: &'static str } +pub mod help; pub mod auth; pub mod show_cache; pub mod twete; @@ -18,6 +20,7 @@ pub mod follow; pub mod thread; pub static COMMANDS: &[&Command] = &[ + &help::HELP, &auth::AUTH, &auth::PIN, &show_cache::SHOW_CACHE, @@ -39,19 +42,4 @@ pub static COMMANDS: &[&Command] = &[ &thread::FORGET_THREAD, &thread::REMEMBER_THREAD, &thread::LIST_THREADS - /* - &QUIT, - &LOOK_UP_USER, - &LOOK_UP_TWEET, - &VIEW, - &UNFAV, - &FAV, - &DEL, - &TWETE, - "E, - &RETWETE, - &REP, - &THREAD - ]; - */ ]; -- cgit v1.1