Guillermo Rauch
9 years ago
1 changed files with 8 additions and 1 deletions
@ -1,7 +1,14 @@ |
|||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||
import login from '../lib/login'; |
import login from '../lib/login'; |
||||
|
import chalk from 'chalk'; |
||||
|
|
||||
login().then(() => { |
console.log(`> ${chalk.bold('Authenticating…')}`); |
||||
|
|
||||
|
login() |
||||
|
.then(() => { |
||||
console.log('> Logged in successfully. Token saved in ~/.now.json'); |
console.log('> Logged in successfully. Token saved in ~/.now.json'); |
||||
process.exit(0); |
process.exit(0); |
||||
|
}) |
||||
|
.catch((err) => { |
||||
|
console.error(`> Error. Login filed. Run \`now --login\` to retry.`); |
||||
}); |
}); |
||||
|
Loading…
Reference in new issue