Skip to content

Anything can become a namespace #1134

Description

@StartAutomating

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions