File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ This directory and it's subdirectories contain additional language keywords within PipeScript.
2+
3+ Most keywords will be implemented as a Transpiler that tranforms a CommandAST.
4+
5+ ~~~ PipeScript{
6+ [PSCustomObject]@{
7+ Table = Get-Transpiler -TranspilerPath $pwd |
8+ Select-Object DisplayName, Synopsis, @{
9+ Name='Link'
10+ Expression = { $_.Name }
11+ }
12+ }}
13+ ~~~
14+
15+
16+ ~~~ PipeScript{
17+ @(foreach ($transpiler in Get-Transpiler -TranspilerPath $pwd) {
18+ $examples = @($transpiler.Examples)
19+ if (-not $examples) { continue }
20+ for ($exampleNumber = 1; $exampleNumber -le $examples.Length; $exampleNumber++) {
21+ @("## $($transpiler.DisplayName) Example $($exampleNumber)",
22+ [Environment]::Newline,
23+ "~~~PowerShell",
24+ $examples[$exampleNumber - 1],
25+ "~~~") -join [Environment]::Newline
26+ }
27+ }) -join ([Environment]::Newline * 2)
28+ }
29+ ~~~
You can’t perform that action at this time.
0 commit comments