Browse Source

improve stdout

master
Guillermo Rauch 9 years ago
parent
commit
953b32a939
  1. 18
      bin/now-list
  2. 4
      bin/now-remove

18
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
`);
};

4
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')}

Loading…
Cancel
Save