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

Add Parallels child detection #855

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JSCU-CNI
Copy link
Contributor

This PR adds Parallels child detection for MacOS targets.

@Schamper Schamper changed the title Add parallels child detection Add Parallels child detection Sep 19, 2024
yield from iter_vms(path)


def iter_vms(path: TargetPath) -> Iterator[TargetPath]:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def iter_vms(path: TargetPath) -> Iterator[TargetPath]:
def iter_vms(path: Path) -> Iterator[TargetPath]:

if not self.pvms:
raise UnsupportedPluginError("No Parallels pvm file(s) found")

def list_children(self):
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def list_children(self):
def list_children(self) -> Iterator[ChildTargetRecord]:

@@ -0,0 +1,67 @@
from typing import Iterator
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
from typing import Iterator
from pathlib import Path
from typing import Iterator

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