aboutsummaryrefslogtreecommitdiff
path: root/commands/view.rs
diff options
context:
space:
mode:
Diffstat (limited to 'commands/view.rs')
-rw-r--r--commands/view.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/commands/view.rs b/commands/view.rs
deleted file mode 100644
index d01ff1b..0000000
--- a/commands/view.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-use tw;
-use ::Queryer;
-
-use commands::Command;
-
-use std::str::FromStr;
-
-use display;
-
-pub static VIEW: Command = Command {
- keyword: "view",
- params: 1,
- exec: view
-};
-
-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();
- display::render_twete(&twete.id, tweeter);
- println!("link: https://twitter.com/i/web/status/{}", twete.id);
-}