Browse Source

now: colors, colors everywhere

master
Guillermo Rauch 9 years ago
parent
commit
4f08f41dcc
  1. 5
      bin/now

5
bin/now

@ -5,6 +5,7 @@ import copy from '../lib/copy';
import { resolve } from 'path'; import { resolve } from 'path';
import login from '../lib/login'; import login from '../lib/login';
import bytes from 'bytes'; import bytes from 'bytes';
import chalk from 'chalk';
import Now from '../lib'; import Now from '../lib';
import fs from 'fs'; import fs from 'fs';
import ms from 'ms'; import ms from 'ms';
@ -77,9 +78,9 @@ async function sync (token) {
if (clipboard) { if (clipboard) {
try { try {
await copy(url); await copy(url);
console.log(`> ${url} (copied to clipboard) [${elapsed}]`); console.log(`> ${chalk.cyan('Ready!')} ${chalk.bold(`https://${url}`)} (copied to clipboard) [${elapsed}]`);
} catch (err) { } catch (err) {
console.log(`> ${url} [${elapsed}]`); console.log(`> ${chalk.cyan('Ready!')} ${chalk.bold(`https://${url}`)} [${elapsed}]`);
} }
} else { } else {
console.log(`> ${url} [${elapsed}]`); console.log(`> ${url} [${elapsed}]`);

Loading…
Cancel
Save