aboutsummaryrefslogtreecommitdiff
path: root/commands/view.rs
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-01 23:25:46 -0700
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-01 23:25:46 -0700
commit943824e02fa771fa8350e4da90f2c9591ec4647e (patch)
treed04f8509e442e74e89cb6e7204d7fb4455d15ccd /commands/view.rs
parente6ebf2c99a70bd5ee4e8d07097e6b128c3630714 (diff)
yank out more parts, decouple events and display
Diffstat (limited to 'commands/view.rs')
-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);
}