Skip to content

Commit

Permalink
added --standalone flag for android setup
Browse files Browse the repository at this point in the history
  • Loading branch information
itsspriyansh committed Mar 4, 2024
1 parent 59c7d45 commit e2d63bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/commands/android/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export const AVAILABLE_OPTIONS: AvailableOptions = {
appium: {
alias: [],
description: 'Make sure the final setup works with Appium out-of-the-box.'
},
standalone: {
alias: [],
description: 'Do standalone setup for Android Emulator (no Nightwatch-related requirements will be downloaded).'
}
};

Expand Down
3 changes: 3 additions & 0 deletions src/commands/android/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ export class AndroidSetup {

async getSetupConfigs(options: Options): Promise<SetupConfigs> {
const configs = this.getConfigFromOptions(options);
if (this.options.standalone) {
configs.browsers = 'none';
}

return await prompt(SETUP_CONFIG_QUES, configs);
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const run = () => {
try {
const argv = process.argv.slice(2);
const {_: args, ...options} = minimist(argv, {
boolean: ['install', 'setup', 'help', 'appium'],
boolean: ['install', 'setup', 'help', 'appium', 'standalone'],
alias: {
help: 'h',
mode: 'm',
Expand Down

0 comments on commit e2d63bf

Please sign in to comment.