aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-10-01 23:25:46 -0700
committeriximeow <me@iximeow.net>2017-10-01 23:25:46 -0700
commit0733877c7140b37affcd08f5d8e3755efe74e1ef (patch)
treed04f8509e442e74e89cb6e7204d7fb4455d15ccd /commands
parent132de644b77b42174ab470ea653352b05f4eca8d (diff)
yank out more parts, decouple events and display
Diffstat (limited to 'commands')
-rw-r--r--commands/view.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/view.rs b/commands/view.rs
index 1470f90..d01ff1b 100644
--- a/commands/view.rs
+++ b/commands/view.rs
@@ -5,6 +5,8 @@ use commands::Command;
use std::str::FromStr;
+use display;
+
pub static VIEW: Command = Command {
keyword: "view",
params: 1,
@@ -15,6 +17,6 @@ fn view(line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer) {
// TODO handle this unwrap
let inner_twid = u64::from_str(&line).unwrap();
let twete = tweeter.tweet_by_innerid(inner_twid).unwrap();
- ::render_twete(&twete.id, tweeter);
+ display::render_twete(&twete.id, tweeter);
println!("link: https://twitter.com/i/web/status/{}", twete.id);
}