PipeScript icon indicating copy to clipboard operation
PipeScript copied to clipboard

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

Open StartAutomating opened this issue 1 year ago • 0 comments

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.

StartAutomating avatar Jul 05 '24 22:07 StartAutomating