Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: uninstall avd #60

Merged
merged 7 commits into from
Aug 23, 2024
Merged

Conversation

itsspriyansh
Copy link
Contributor

Description

This PR adds the support for deleting an AVD. This feature can be accessed with this command:

npx @nightwatch/mobile-helper android uninstall --avd
Screencast.from.02-08-24.11.59.10.AM.IST.webm

@itsspriyansh
Copy link
Contributor Author

Prerequisite #59 for adding the index.ts file

Comment on lines 19 to 21
const installedAvds = execBinarySync(avdmanagerLocation, 'avdmanager', platform, 'list avd -c');
if (!installedAvds) {
Logger.log(`${colors.yellow('Failed to fetch installed AVDs.')} Please try again.`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also provide a command here that the user can run to list all the installed AVDs (probably using the dot command?).

Also, do you think it'd be worth adding a list subcommand to the tool, to list various things like list devices to list all the connected devices and list avd to list all the avds?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a good idea. We can add a subcommand for listing devices.

src/commands/android/subcommands/uninstall/avd.ts Outdated Show resolved Hide resolved
@itsspriyansh
Copy link
Contributor Author

@garg3133 PR updated.
And PR raised for listing devices #66

@garg3133 garg3133 merged commit d7d9a81 into nightwatchjs:main Aug 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants