Class: AllTweets::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/alltweets/cli.rb

Instance Method Summary collapse

Instance Method Details

#runObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/alltweets/cli.rb', line 10

def run
  Rainbow.enabled = true # forcing coloring even when stdout/stderr is not a tty
  @screen_name, @opts = parse_args
  @settings = Settings.new
  update_access_token
  fetch_and_print
rescue
  warn "Error: #{$!}".color(:red)
  exit 1
end