Tests/Examples/Get-PipeScript.examples.tests.ps1


describe 'Get-PipeScript' {
    it 'Get-PipeScript Example 1' {
        # Get every specialized PipeScript command
        Get-PipeScript
    }
    it 'Get-PipeScript Example 2' {
        # Get all transpilers
        Get-PipeScript -PipeScriptType Transpiler
    }
    it 'Get-PipeScript Example 3' {
        # Get all template files within the current directory.
        Get-PipeScript -PipeScriptType Template -PipeScriptPath $pwd
    }
    it 'Get-PipeScript Example 4' {
        # You can use `noun verb` to call any core PipeScript command.
        PipeScript Invoke { "hello world" } |  Should -Be 'Hello World'
    }
    it 'Get-PipeScript Example 5' {
        # You can still use the object pipeline with `noun verb`
        { partial function f { } }  |
            PipeScript Import -PassThru |  Should -BeOfType ([Management.Automation.PSModuleInfo])
    }
}