Browse Source

Fix table alignments in listings

master
Olli Vanhoja 8 years ago
parent
commit
db10a26c84
  1. 2
      bin/now-alias
  2. 3
      bin/now-domains

2
bin/now-alias

@ -142,7 +142,7 @@ async function run (token) {
_url,
time
];
}), { align: ['l', 'r', 'l'], hsep: ' '.repeat(2) });
}), { align: ['l', 'r', 'l', 'l'], hsep: ' '.repeat(2) });
const elapsed_ = ms(new Date() - start_);
console.log(`> ${aliases.length} alias${aliases.length > 1 ? 'es' : ''} found ${chalk.gray(`[${elapsed_}]`)}`);

3
bin/now-domains

@ -131,12 +131,11 @@ async function run (token) {
const url = chalk.underline(`https://${domain.name}`);
const time = chalk.gray(ms(current - new Date(domain.created)) + ' ago');
return [
'',
domain.uid,
url,
time
];
}), { align: ['l', 'r', 'l'], hsep: ' '.repeat(2) });
}), { align: ['r', 'l', 'l'], hsep: ' '.repeat(2) });
const elapsed_ = ms(new Date() - start_);
console.log(`> ${domains.length} domain${domains.length > 1 ? 's' : ''} found ${chalk.gray(`[${elapsed_}]`)}`);

Loading…
Cancel
Save