Class: Wl::CLI::Auth

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

Instance Method Summary collapse

Instance Method Details

#loginObject



10
11
12
13
14
15
16
17
# File 'lib/wl/cli/auth.rb', line 10

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

   = client.(email, password)

  say .to_json
end