diff options
author | iximeow <me@iximeow.net> | 2017-10-01 23:25:46 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2017-10-01 23:25:46 -0700 |
commit | 0733877c7140b37affcd08f5d8e3755efe74e1ef (patch) | |
tree | d04f8509e442e74e89cb6e7204d7fb4455d15ccd /commands | |
parent | 132de644b77b42174ab470ea653352b05f4eca8d (diff) |
yank out more parts, decouple events and display
Diffstat (limited to 'commands')
-rw-r--r-- | commands/view.rs | 4 |
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); } |