Skip to content

Commit 407a78a

Browse files
authored
Merge pull request #194 from japneetlambdatest/CYP-457
Cyp 457- Added capability to pass VIsual UI project from CLI
2 parents 32c18d2 + e913687 commit 407a78a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

commands/utils/set_args.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,15 @@ function sync_args_from_cmd(args) {
294294
} else if (!lt_config["run_settings"]["stop_on_failure"]) {
295295
lt_config["run_settings"]["stop_on_failure"] = false;
296296
}
297+
//Override project name for visual ui
298+
if ("vi-project" in args) {
299+
if (lt_config.run_settings.smart_ui != undefined) {
300+
lt_config.run_settings.smart_ui.project = args["vi-project"];
301+
} else {
302+
lt_config.run_settings.smart_ui = {};
303+
lt_config.run_settings.smart_ui.project = args["vi-project"];
304+
}
305+
}
297306

298307
if (
299308
lt_config.run_settings.project_name &&

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ const argv = require("yargs")
132132
alias: "sys-env-variables",
133133
describe: "system environment variables",
134134
type: "string",
135+
})
136+
.option("vip", {
137+
alias: "vi-project",
138+
describe: "visual ui project name",
139+
type: "string",
135140
});
136141
},
137142
function (argv) {

0 commit comments

Comments
 (0)