From d1375496948c3357c62720d7fe63771906de2b8f Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Thu, 23 Feb 2017 09:55:36 +0100 Subject: [PATCH] Proper name for command used for opening last deployment --- bin/{now-browse.js => now-open.js} | 10 +++++----- bin/now.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename bin/{now-browse.js => now-open.js} (93%) diff --git a/bin/now-browse.js b/bin/now-open.js similarity index 93% rename from bin/now-browse.js rename to bin/now-open.js index 79bcd79..296fc58 100644 --- a/bin/now-browse.js +++ b/bin/now-open.js @@ -26,7 +26,7 @@ const argv = minimist(process.argv.slice(2), { const help = () => { console.log(` - ${chalk.bold(`${logo} now browse`)} + ${chalk.bold(`${logo} now open`)} ${chalk.dim('Options:')} @@ -37,9 +37,9 @@ const help = () => { ${chalk.dim('Examples:')} - ${chalk.gray('–')} Open latest deployment for current app + ${chalk.gray('–')} Open latest deployment for current project - ${chalk.cyan('$ now browse')} + ${chalk.cyan('$ now open')} `) } @@ -64,7 +64,7 @@ const config = cfg.read() Promise.resolve(argv.token || config.token || login(apiUrl)) .then(async token => { try { - await browse(token) + await open(token) } catch (err) { error(`Unknown error: ${err}\n${err.stack}`) process.exit(1) @@ -75,7 +75,7 @@ Promise.resolve(argv.token || config.token || login(apiUrl)) process.exit(1) }) -async function browse(token) { +async function open(token) { const now = new Now(apiUrl, token, {debug}) let deployments diff --git a/bin/now.js b/bin/now.js index 70e7b01..50f1700 100755 --- a/bin/now.js +++ b/bin/now.js @@ -55,7 +55,7 @@ const commands = new Set([ 'billing', 'upgrade', 'downgrade', - 'browse' + 'open' ]) const aliases = new Map([