aboutsummaryrefslogtreecommitdiff
path: root/src/commands/mod.rs
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-11-25 18:39:04 -0800
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-11-25 18:39:04 -0800
commite4925f0311574cd954909695bb587902179f8680 (patch)
treebdd9e3eef0496018be29635a72aba26b0fc1bb64 /src/commands/mod.rs
parentd626ae08cdfe8d1cbae3fdd0ccc9827d4691718e (diff)
extract DisplayInfo from TwitterCache
what a mess... threading this through to any point where printing happens is upsetting. probably should be a global mutable behind accessors.
Diffstat (limited to 'src/commands/mod.rs')
-rw-r--r--src/commands/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs
index 262a748..e8a725b 100644
--- a/src/commands/mod.rs
+++ b/src/commands/mod.rs
@@ -1,10 +1,11 @@
+use display::DisplayInfo;
use tw;
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, display_info: &mut DisplayInfo),
pub param_str: &'static str,
pub help_str: &'static str
}