Class: Wl::CLI::Auth
- Inherits:
-
Thor
- Object
- Thor
- Wl::CLI::Auth
- Defined in:
- lib/wl/cli/auth.rb
Instance Method Summary collapse
Instance Method Details
#login ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/wl/cli/auth.rb', line 10 def login email = [:email] || ui.ask('Wunderlist email: ') password = [:password] || ui.ask('Wunderlist password: ') { |q| q.echo = '*' } login = client.login(email, password) say login.to_json end |