Browse Source

now-rm: Don't show URL for incomplete deployments (#221)

Fixes this:

> The following deployment will be removed permanently:
XXXXXXXXXXXXXXXXXXXXXXXX      https://null      21d ago
master
Olli Vanhoja 8 years ago
committed by Leo Lamprecht
parent
commit
311abf3d2f
  1. 2
      bin/now-remove.js

2
bin/now-remove.js

@ -81,7 +81,7 @@ function readConfirmation(matches) {
const tbl = table(
matches.map(depl => {
const time = chalk.gray(ms(new Date() - depl.created) + ' ago')
const url = chalk.underline(`https://${depl.url}`)
const url = depl.url ? chalk.underline(`https://${depl.url}`) : ''
return [depl.uid, url, time]
}),
{align: ['l', 'r', 'l'], hsep: ' '.repeat(6)}

Loading…
Cancel
Save