Commits

Richo Healey committed 2b85ff4

Prettyprint for -u as well

Comments (0)

Files changed (2)

 =======
 
 twat -l should dump colors to terminal (This should be configurable tho)
+
+Refactor tweet printing code, unify throughout

lib/twat/actions.rb

     def user_feed
       twitter_auth
       # Fix :default case
-      puts Twitter.user_timeline(opts[:user]).first.text
+      Twitter.user_timeline(opts[:user]).first.tap do |tweet|
+        puts "#{tweet.user.screen_name.bold.cyan}: #{tweet.text}"
+      end
     end
 
     def version