Skip to content

Commit

Permalink
direct message cli command, ugly output
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerley committed Feb 6, 2009
1 parent e9e15cd commit 2c2dc20
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/twitter/cli.rb
Expand Up @@ -310,6 +310,19 @@ def run
end
end

mode 'direct' do
description 'Allows you to view messages directed at you'

def run
do_work do
options, since = {}, Configuration["directs_since"]
options[:since] = since_id if !since_id.nil?
collection = base.direct_messages(options)
say collection.inspect
end
end
end

mode 'clear_config' do
def run
do_work do
Expand Down

0 comments on commit 2c2dc20

Please sign in to comment.