Browse Source

show usage message upon login (#556)

Rather than eagerly deploying upon first usage.

Fixes #533.
master
Nathan Rajlich 8 years ago
committed by Guillermo Rauch
parent
commit
cde2647587
  1. 12
      bin/now-deploy.js

12
bin/now-deploy.js

@ -227,10 +227,14 @@ async function main() {
} catch (err) {
return stopDeployment(`Authentication error – ${err.message}`)
}
if (shouldLogin) {
console.log('> Logged in successfully. Token saved in ~/.now.json')
return exit(0)
}
console.log(
`> Logged in successfully. Token saved to ${chalk.bold('~/.now.json')}.`
)
console.log(
`> Run ${cmd('now')} to deploy the current directory, or ${cmd('now --help')} for usage info.\n`
)
return exit(0)
}
// If we got to here then `token` should be set

Loading…
Cancel
Save