Skip to content

Route Command Type #670

Closed
Closed

Description

@StartAutomating

This should be a fairly straightforward command type.

It should be used to signal that a command will handle a route.

Which route the command will handle is determined by the [ValidatePattern] and [ValidateScript] attributes on the ScriptBlock (specifically, those that have an .ErrorMessage that starts with $Request)

Because the aspects related to command types should respect order, one could effectively route through several possibilities at fairly low cost (we'd checking the validations for every script, and only running what fits)

As with Parsers (#553), Routes should support multiple potential suffixes. That is:

Route,Routes,Router should all be considered Routes.

This command type should be extended for ease of integration:

PipeScript should also include a few "default" routes:

Activity

  1. added this to the New Concepts milestone on Nov 16, 2023
  2. added a commit that references this issue on Nov 16, 2023
    0603786
  3. added a commit that references this issue on Nov 16, 2023
    3b8d1f2
  4. added a commit that references this issue on Nov 20, 2023
    f5bc816
  5. added a commit that references this issue on Nov 20, 2023
    81cf687
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

Relationships

None yet

Development

No branches or pull requests

Issue actions