File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments