Skip to content

Commit 9d8f54e

Browse files
StartAutomatingStartAutomating
authored andcommitted
Updating PipeScript.HelpOut.ps1 (including topics, re #132)
1 parent ff3db9f commit 9d8f54e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/README.ps1.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
~~~

0 commit comments

Comments
 (0)