From 953b32a9391fba5084ff062023f47217e6e8265c Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 27 May 2016 16:11:43 -0700 Subject: [PATCH] improve stdout --- bin/now-list | 18 ++++++++++++++---- bin/now-remove | 4 ++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/bin/now-list b/bin/now-list index 5bbae97..e8186ce 100755 --- a/bin/now-list +++ b/bin/now-list @@ -13,14 +13,24 @@ import { handleError, error } from '../lib/error'; const argv = minimist(process.argv.slice(2)); const help = () => { console.log(` - 𝚫 now list [app] + ${chalk.bold('𝚫 now list')} [app] - Options: + ${chalk.dim('Options:')} -h, --help output usage information - -d, --debug Debug mode [off] + -d, --debug debug mode [off] - Alias: ls + ${chalk.dim('Examples:')} + + ${chalk.gray('–')} List all deployments + + ${chalk.cyan('$ now ls')} + + ${chalk.gray('–')} List all deployments for the app ${chalk.dim('`my-app`')} + + ${chalk.cyan('$ now ls my-app')} + + ${chalk.dim('Alias:')} ls `); }; diff --git a/bin/now-remove b/bin/now-remove index d4809aa..3448b29 100755 --- a/bin/now-remove +++ b/bin/now-remove @@ -20,11 +20,11 @@ const help = () => { ${chalk.dim('Options:')} -h, --help output usage information - -d, --debug Debug mode [off] + -d, --debug debug mode [off] ${chalk.dim('Examples:')} - ${chalk.gray('–')} Remove a deployment identified by ${chalk.gray('`deploymentId`')}: + ${chalk.gray('–')} Remove a deployment identified by ${chalk.dim('`deploymentId`')}: ${chalk.cyan('$ now rm deploymentId')}