Skip to content

Latest commit

 

History

History
 
 

README.md

This directory and it's subdirectories contain the Transpilers that ship with PipeScript.

Transpilers should have the extension .psx.ps1

Any other module can define it's own Transpilers.

All the module needs to do for the transpilers to be recognized by PipeScript is add PipeScript to the .PrivateData.PSData.Tags section of the module's manifest file.

This directory includes uncategorized or 'common' transpilers.

DisplayName Synopsis
Decorate decorate transpiler
Define Defines a variable
Include Includes Files

Examples

Decorate Example 1

    {
        $v = [PSCustomObject]@{}
        [decorate('MyTypeName',Clear,PassThru)]$v
    }.Transpile()

Define Example 1

    {
        [Define(Value={Get-Random})]$RandomNumber
    }.Transpile()

Define Example 2

    {
        [Define(Value={$global:ThisValueExistsAtBuildTime})]$MyVariable
    }.Transpile()

Include Example 1

    {
        [Include("Invoke-PipeScript")]$null
    } | .>PipeScript

Include Example 2

    {
        [Include("Invoke-PipeScript")]
        param()
    } | .>PipeScript

Include Example 3

    {
        [Include('*-*.ps1')]$psScriptRoot
    } | .>PipeScript

Include Example 4

    {
        [Include('https://pssvg.start-automating.com/Examples/PowerShellChevron.svg')]$PSChevron
    } | .>PipeScript