From c1e4345b03f72e560b911df6c1f6a1020f3a8a30 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sat, 8 Aug 2015 21:21:09 +0200 Subject: [PATCH] add --pass and --export options to publish command --- cli/cmds/publish.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/cmds/publish.js b/cli/cmds/publish.js index 325c69c0..193e04dc 100644 --- a/cli/cmds/publish.js +++ b/cli/cmds/publish.js @@ -89,6 +89,7 @@ var publish = function(args) { username = user.split(":")[0]; password = user.split(":")[1]; } + password = args.pass || password; var promise; if (!password) { @@ -130,6 +131,7 @@ var publish = function(args) { version: args['setVersion'], repoUrl: args['repoUrl'], endpoint: args['endpoint'], + export: args['export'], exporterPath: args['exporterPath'], exportPackage: args['exportPackage'], email: args['email'], @@ -157,9 +159,11 @@ exports.usage = { ], options: [ { option: 'user', type: 'String', description: "github username or username:password. Can pass as env var HFT_PUBLISH_USER", }, + { option: 'pass', type: 'String', description: "github password. If not provided will be asked." }, { option: 'bump', type: 'String', description: "how to bump version (major, premajor, minor, preminor, patch, prepatch, prerelease), default: patch", }, { option: 'src', type: 'String', description: "path to source. If not supplied assumes current working directory.", }, { option: 'force', type: 'Boolean', description: "don't ask for conformation", }, + { option: 'export', type: 'Boolean', description: "export if type of project that needs exporting, eg:Unity3d. use --no-export to turn off", default: "true" }, { option: 'set-version', type: 'String', description: "set a specific version in semver format. (eg: --version=1.2.3)", }, { option: 'dry-run', type: 'Boolean', description: "don't write any files", }, { option: 'endpoint', type: 'String', description: "base url to use to register server (eg. http://local.test.com)"},