From 5cf2ebe45bb5cee2880b2269ffa023fe3e64e5f6 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Tue, 19 Apr 2016 21:36:04 -0300 Subject: [PATCH] now-list: style --- bin/now-list | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/now-list b/bin/now-list index 93eea13..8a6fb42 100755 --- a/bin/now-list +++ b/bin/now-list @@ -75,10 +75,10 @@ async function list (token) { const current = Date.now(); const text = sorted.map(([name, deps]) => { const t = table(deps.map(({ uid, url, created }) => { - const time = ms(current - created) + ' ago'; + const time = chalk.gray(ms(current - created) + ' ago'); return [ uid, time, `https://${url}` ]; - }), { align: ['l', 'r', 'l'], hsep: ' '.repeat(8) }); - return chalk.bold(name) + '\n\n' + indent(t, 2).split('\n').join('\n\n'); + }), { align: ['l', 'r', 'l'], hsep: ' '.repeat(6) }); + return chalk.bold(name) + '\n\n' + indent(t, 2); }).join('\n\n'); if (text) console.log('\n' + text + '\n');