aboutsummaryrefslogtreecommitdiff
path: root/src/commands/help.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/help.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/help.rs')
-rw-r--r--src/commands/help.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/help.rs b/src/commands/help.rs
index 445684b..550b677 100644
--- a/src/commands/help.rs
+++ b/src/commands/help.rs
@@ -1,3 +1,4 @@
+use display::DisplayInfo;
use tw;
use ::Queryer;
@@ -11,6 +12,6 @@ pub static HELP: Command = Command {
help_str: "This help prompt."
};
-fn help(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) {
+fn help(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer, display_info: &mut DisplayInfo) {
tweeter.state = tw::AppState::ShowHelp;
}