aboutsummaryrefslogtreecommitdiff
path: root/commands/show_cache.rs
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-02 01:27:08 -0700
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-02 01:27:18 -0700
commitea4e93f01d9e4ef17effae1e9a807bb1977865fe (patch)
tree08cfbcc32b9fbea5f13fd3447026090f51402274 /commands/show_cache.rs
parentafd61ae0822690f30d37859c806a8d8d843b8c1a (diff)
move everything to src/
Diffstat (limited to 'commands/show_cache.rs')
-rw-r--r--commands/show_cache.rs31
1 files changed, 0 insertions, 31 deletions
diff --git a/commands/show_cache.rs b/commands/show_cache.rs
deleted file mode 100644
index 3c31697..0000000
--- a/commands/show_cache.rs
+++ /dev/null
@@ -1,31 +0,0 @@
-use tw;
-use ::Queryer;
-
-use commands::Command;
-
-pub static SHOW_CACHE: Command = Command {
- keyword: "show_cache",
- params: 0,
- exec: show_cache
-};
-
-fn show_cache(line: String, tweeter: &mut tw::TwitterCache, mut queryer: &mut Queryer) {
- println!("----* USERS *----");
- for (uid, user) in &tweeter.users {
- println!("User: {} -> {:?}", uid, user);
- }
- println!("----* TWEETS *----");
- for (tid, tweet) in &tweeter.tweets {
- println!("Tweet: {} -> {:?}", tid, tweet);
- }
- println!("----* FOLLOWERS *----");
- for uid in &tweeter.followers.clone() {
- let user_res = tweeter.fetch_user(uid, &mut queryer);
- match user_res {
- Some(user) => {
- println!("Follower: {} - {:?}", uid, user);
- }
- None => { println!(" ..."); }
- }
- }
-}