Class: Wl::CLI

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

Instance Method Summary collapse

Instance Method Details

#loginObject



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

def 
  email    = options[:email]    || ui.ask('Wunderlist email: ')
  password = options[:password] || ui.ask('Wunderlist password: ') { |q| q.echo = '*' }

  client = Wl::Client.new
   = client.(email, password)

  dotwl = Dotwl.new
  dotwl.()

  say .to_json
end