Skip to content

Latest commit

 

History

History
90 lines (36 loc) · 1.19 KB

File metadata and controls

90 lines (36 loc) · 1.19 KB

Aspect.ModuleCommandPattern

Synopsis

Outputs a module's command pattern


Description

Outputs a regular expression that can be used to match any command pattern.


Examples

EXAMPLE 1

Aspect.ModuleCommandPattern -Module PipeScript # Should -BeOfType ([Regex])

Parameters

Module

The name of a module, or a module info object.

Type Required Position PipelineInput
[Object] true 1 true (ByPropertyName)

Suffix

The suffix to apply to each named capture. Defaults to '_Command'

Type Required Position PipelineInput
[String] false 2 true (ByPropertyName)

Prefix

The prefix to apply to each named capture.

Type Required Position PipelineInput
[String] false 3 true (ByPropertyName)

Syntax

Aspect.ModuleCommandPattern [-Module] <Object> [[-Suffix] <String>] [[-Prefix] <String>] [<CommonParameters>]