@hubspot/cms-cli
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -38,3 +38,16 @@ const Logger = require('@hubspot/cms-lib/logger'); | ||
const addTestingOptions = program => { | ||
program.option('--qa', 'run command in qa mode', false); | ||
const qaFlagOption = '--qa'; | ||
program.option(qaFlagOption, 'run command in qa mode', false); | ||
// This allows us to hide the output of this option in the help text | ||
// because commander does not support hiding it | ||
// see https://github.com/tj/commander.js/issues/811 | ||
program.help(output => { | ||
return output | ||
.split('\n') | ||
.filter( | ||
helpTextLineContent => helpTextLineContent.indexOf(qaFlagOption) === -1 | ||
) | ||
.join('\n'); | ||
}); | ||
}; | ||
@@ -41,0 +54,0 @@ |
{ | ||
"name": "@hubspot/cms-cli", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "CLI for interacting with the HubSpot CMS", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"@hubspot/api-auth-lib": "^1.1.3-beta.0", | ||
"@hubspot/cms-lib": "^1.1.3-beta.1", | ||
"@hubspot/cms-lib": "^1.1.4", | ||
"commander": "^2.16.0", | ||
@@ -31,3 +31,3 @@ "inquirer": "^6.3.1", | ||
}, | ||
"gitHead": "835e375ebe039e01049eb38cd91e22a7dcbb0125" | ||
"gitHead": "65b9cb9892dd6c398dbb1b4076a2f6c8be18dd15" | ||
} |
93311
2721
Updated@hubspot/cms-lib@^1.1.4