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

Anything can become a namespace #1134

Open
Tracked by #1132
StartAutomating opened this issue Jun 27, 2024 · 0 comments
Open
Tracked by #1132

Anything can become a namespace #1134

StartAutomating opened this issue Jun 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@StartAutomating
Copy link
Owner

StartAutomating commented Jun 27, 2024

Any object should be able to become a namespace, simply by decorating itself as a namespace or calling Namespace.New

Certain types of objects will work very effectively as namespaces, and should be treated differently by the ScriptProperties of Namespace

For the most efficient example, a [Regex] can be treated as a dynamic namespace (since all a namespace is doing is matching a pattern to various types of objects).

Anything with a .FilePattern or .CommandPattern will be treated as a namespace of that pattern (and thus any module's existing command types can become namespaces)

A [uri] has several implicit namespaces, but for the sake of sanity we will consider everything until the last segment and query string the [uri]'s namespace

This will be implemented in #1135.

@StartAutomating StartAutomating self-assigned this Jun 27, 2024
@StartAutomating StartAutomating added the enhancement New feature or request label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant