Skip to content

Commit f9c3a3e

Browse files
committed
fix (clirunner) impossible to set app files path from command line
1 parent 497b740 commit f9c3a3e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/cli/clirunner.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ program
2323
.option('-a, --app-id <id>', 'Application Id')
2424
.option('-k, --app-key <key>', 'Application Secret Key')
2525
.option('-v, --app-version <version>', 'Application Version')
26+
.option('-f, --app-files <path-pattern>', 'A files pattern of server code files. For example: /app/** ')
2627
.option('-s, --api-server <url>', 'Backendless API Server URL')
2728
.option('--msg-broker-host <host>', 'Message Broker Host')
2829
.option('--msg-broker-port <port>', 'Message Broker Port')
@@ -138,7 +139,12 @@ function buildOptions(appIsRequired) {
138139
opts.app.id = program.appId || opts.app.id || (yield prompt('Application ID'));
139140
opts.app.version = program.appVersion || opts.app.version || (yield prompt('Application Version'));
140141
opts.app.secretKey = program.appKey || opts.app.secretKey || (yield prompt('Secret Key'));
141-
opts.app.files = opts.app.files || (yield prompt('a path to your business logic files folder'));
142+
143+
if (program.appFiles) {
144+
opts.app.files = [program.appFiles];
145+
} else {
146+
opts.app.files = opts.app.files || [(yield prompt('a path to your business logic files folder'))];
147+
}
142148
});
143149

144150
return gatherAppOptions()

0 commit comments

Comments
 (0)