Closed
Description
Since many transpilers could depend on searching portions of an abstract syntax tree of script, Search-PipeScript should simplify this for all transpilers.
This should be able to search:
- A ScriptBlock
- A File
- .ps1 files should be searchable as a -ScriptBlock
- .ps files should be searchable as a -ScriptBlock
- Text (using Regex)
For [ScriptBlock]
input, Search-PipeScript should:
- Allow searching by type
- Allow searching by shortened type (assuming the namespace)
- Allow searching by type name regex or wildcard
For [string]
input, Search-PipeScript should:
- Allow searches by Regular Expression
Results should be returned with a consistent property bag shape and typename.