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

Namespace.Member(s)() will return members of objects that are in the namespace. #1148

Open
Tracked by #1132
StartAutomating opened this issue Jul 5, 2024 · 0 comments

Comments

@StartAutomating
Copy link
Owner

StartAutomating commented Jul 5, 2024

As we are dynamic namespaces as patterns, it should be fairly straightforward to discover members of an object, module, or dictionary that match.

For example, if we have a namespace "Get", with the pattern ^Get, calling .Members($obj) would return all the members in $obj that matched ^Get.

If the object is a dictionary, the keys should be checked.

If the object is a module, exported variables and command should be checked.

If the object is a PSObject, names should be checked against the .psobject.properties and against the underlying .NET type.

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

No branches or pull requests

1 participant