Browse Source

Merge branch 'master' of github.com:zeithq/now into add/now-rm

master
Tony Kovanen 9 years ago
parent
commit
f30fa9a848
  1. 10
      History.md
  2. 6
      bin/now-list
  3. 2
      package.json

10
History.md

@ -1,4 +1,14 @@
0.10.0 / 2016-04-19
===================
* display default help if wrong command was specified [@nkzawa]
* add the `help` command [@nkzawa]
* add base command [@nkzawa]
* add `now-list` [@nkzawa]
* bin/now -> bin/now-deploy [@nkzawa]
* add `now-rm` (hidden) [@rase-]
0.9.19 / 2016-04-06 0.9.19 / 2016-04-06
=================== ===================

6
bin/now-list

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

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "now", "name": "now",
"version": "0.9.19", "version": "0.10.0",
"description": "", "description": "",
"readme": "", "readme": "",
"main": "./build/lib/index", "main": "./build/lib/index",

Loading…
Cancel
Save