Skip to content

Commit c1e4345

Browse files
committed
add --pass and --export options to publish command
1 parent 02fd3bc commit c1e4345

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/cmds/publish.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ var publish = function(args) {
8989
username = user.split(":")[0];
9090
password = user.split(":")[1];
9191
}
92+
password = args.pass || password;
9293

9394
var promise;
9495
if (!password) {
@@ -130,6 +131,7 @@ var publish = function(args) {
130131
version: args['setVersion'],
131132
repoUrl: args['repoUrl'],
132133
endpoint: args['endpoint'],
134+
export: args['export'],
133135
exporterPath: args['exporterPath'],
134136
exportPackage: args['exportPackage'],
135137
email: args['email'],
@@ -157,9 +159,11 @@ exports.usage = {
157159
],
158160
options: [
159161
{ option: 'user', type: 'String', description: "github username or username:password. Can pass as env var HFT_PUBLISH_USER", },
162+
{ option: 'pass', type: 'String', description: "github password. If not provided will be asked." },
160163
{ option: 'bump', type: 'String', description: "how to bump version (major, premajor, minor, preminor, patch, prepatch, prerelease), default: patch", },
161164
{ option: 'src', type: 'String', description: "path to source. If not supplied assumes current working directory.", },
162165
{ option: 'force', type: 'Boolean', description: "don't ask for conformation", },
166+
{ option: 'export', type: 'Boolean', description: "export if type of project that needs exporting, eg:Unity3d. use --no-export to turn off", default: "true" },
163167
{ option: 'set-version', type: 'String', description: "set a specific version in semver format. (eg: --version=1.2.3)", },
164168
{ option: 'dry-run', type: 'Boolean', description: "don't write any files", },
165169
{ option: 'endpoint', type: 'String', description: "base url to use to register server (eg. http://local.test.com)"},

0 commit comments

Comments
 (0)