diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-11 04:35:35 -0800 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-11 16:00:31 -0800 |
commit | 73dc5dda6b8ca8a8bdae0f620442e359871b0152 (patch) | |
tree | 1a3a0ff74bedf1788079ba642eb222f6a4d23c9d /src/commands/mod.rs | |
parent | 3601bf6433d46dea4dd1960f7a3cdc514602983d (diff) |
start adding help reference
Diffstat (limited to 'src/commands/mod.rs')
-rw-r--r-- | src/commands/mod.rs | 20 |
1 files changed, 4 insertions, 16 deletions
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 - ]; - */ ]; |