You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/cmds/publish.js
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,7 @@ var publish = function(args) {
89
89
username=user.split(":")[0];
90
90
password=user.split(":")[1];
91
91
}
92
+
password=args.pass||password;
92
93
93
94
varpromise;
94
95
if(!password){
@@ -130,6 +131,7 @@ var publish = function(args) {
130
131
version: args['setVersion'],
131
132
repoUrl: args['repoUrl'],
132
133
endpoint: args['endpoint'],
134
+
export: args['export'],
133
135
exporterPath: args['exporterPath'],
134
136
exportPackage: args['exportPackage'],
135
137
email: args['email'],
@@ -157,9 +159,11 @@ exports.usage = {
157
159
],
158
160
options: [
159
161
{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."},
160
163
{option: 'bump',type: 'String',description: "how to bump version (major, premajor, minor, preminor, patch, prepatch, prerelease), default: patch",},
161
164
{option: 'src',type: 'String',description: "path to source. If not supplied assumes current working directory.",},
162
165
{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"},
163
167
{option: 'set-version',type: 'String',description: "set a specific version in semver format. (eg: --version=1.2.3)",},
164
168
{option: 'dry-run',type: 'Boolean',description: "don't write any files",},
165
169
{option: 'endpoint',type: 'String',description: "base url to use to register server (eg. http://local.test.com)"},
0 commit comments