|
|
@ -75,6 +75,7 @@ Promise.resolve(argv.token || config.token || login(apiUrl)) |
|
|
|
|
|
|
|
async function list (token) { |
|
|
|
const now = new Now(apiUrl, token, { debug }); |
|
|
|
const start = new Date(); |
|
|
|
|
|
|
|
let deployments; |
|
|
|
try { |
|
|
@ -103,7 +104,8 @@ async function list (token) { |
|
|
|
}), { align: ['l', 'r', 'l'], hsep: ' '.repeat(6) }); |
|
|
|
return chalk.bold(name) + '\n\n' + indent(t, 2); |
|
|
|
}).join('\n\n'); |
|
|
|
|
|
|
|
const elapsed = ms(new Date() - start); |
|
|
|
console.log(`> ${deployments.length} deployment${deployments.length > 1 ? 's' : ''} found ${chalk.gray(`[${elapsed}]`)}`); |
|
|
|
if (text) console.log('\n' + text + '\n'); |
|
|
|
} |
|
|
|
|
|
|
|