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