File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -444,6 +444,26 @@ function sync_args_from_cmd(args) {
444
444
}
445
445
}
446
446
447
+ //Override build name for visual ui
448
+ if ( "vi-build" in args ) {
449
+ if ( lt_config . run_settings . smart_ui != undefined ) {
450
+ lt_config . run_settings . smart_ui . build = args [ "vi-build" ] ;
451
+ } else {
452
+ lt_config . run_settings . smart_ui = { } ;
453
+ lt_config . run_settings . smart_ui . build = args [ "vi-build" ] ;
454
+ }
455
+ }
456
+
457
+ //Override baseline for visual ui
458
+ if ( "vi-base" in args ) {
459
+ if ( lt_config . run_settings . smart_ui != undefined ) {
460
+ lt_config . run_settings . smart_ui . baseline = args [ "vi-base" ] ;
461
+ } else {
462
+ lt_config . run_settings . smart_ui = { } ;
463
+ lt_config . run_settings . smart_ui . baseline = args [ "vi-base" ] ;
464
+ }
465
+ }
466
+
447
467
if (
448
468
lt_config . run_settings . project_name &&
449
469
! lt_config . run_settings . project_key
Original file line number Diff line number Diff line change @@ -187,6 +187,14 @@ const argv = require("yargs")
187
187
alias : "vi-project" ,
188
188
describe : "visual ui project name" ,
189
189
type : "string" ,
190
+ } ) . option ( "vib" , {
191
+ alias : "vi-build" ,
192
+ describe : "visual ui build name" ,
193
+ type : "string" ,
194
+ } ) . option ( "vibase" , {
195
+ alias : "vi-base" ,
196
+ describe : "visual ui baseline" ,
197
+ type : "bool" ,
190
198
} )
191
199
. option ( "res" , {
192
200
alias : "resolution" ,
You can’t perform that action at this time.
0 commit comments