Browse Source

improve display of now list

master
Guillermo Rauch 9 years ago
parent
commit
d56f6adc75
  1. 3
      bin/now-list

3
bin/now-list

@ -75,8 +75,9 @@ async function list (token) {
const current = Date.now();
const text = sorted.map(([name, deps]) => {
const t = table(deps.map(({ uid, url, created }) => {
const _url = chalk.underline(`https://${url}`);
const time = chalk.gray(ms(current - created) + ' ago');
return [ uid, time, `https://${url}` ];
return [uid, _url, time];
}), { align: ['l', 'r', 'l'], hsep: ' '.repeat(6) });
return chalk.bold(name) + '\n\n' + indent(t, 2);
}).join('\n\n');

Loading…
Cancel
Save