Skip to content

Commit 31db53f

Browse files
Merge pull request #245 from StartAutomating/PipeScript-Keywords-NLG-And-Templates
Pipe script keywords nlg and templates
2 parents d8281cb + 1c860b8 commit 31db53f

File tree

104 files changed

+2037
-364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+2037
-364
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.1.6:
2+
* Added 'all' keyword (iterate over everything) (Fixes #244).
3+
* Added Natural Language Processing to CommandAST (Fixes #242)
4+
* New Language Support:
5+
* HashiCorp Language (HCL) (Fixes #240 / #241)
6+
* WebAssembly (WAT) (Fixes #239)
7+
---
8+
19
## 0.1.5:
210
* Support for [inherit]ing a command (Fixes #235) (finally/wow)
311
* Join-PipeScript: Overhauling (Fixes #231 Fixes #232 Fixes #233 Fixes #236)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Write-FormatView -TypeName PipeScript.Sentence -Action {
2+
3+
Write-FormatViewExpression -ForegroundColor Verbose -Property Keyword -If { $_.Command }
4+
Write-FormatViewExpression -ForegroundColor Success -ScriptBlock { " <# $($_.Command) #> " } -If { $_.Command }
5+
6+
Write-FormatViewExpression -ScriptBlock { ' ' }
7+
Write-FormatViewExpression -ScriptBlock {
8+
@(foreach ($clause in $_.Clauses) {
9+
$wordNumber = -1
10+
foreach ($word in $clause.Words) {
11+
$wordNumber++
12+
if (-not $wordNumber) {
13+
Format-RichText -ForegroundColor Warning -InputObject "$word"
14+
} else {
15+
Format-RichText -InputObject "$word"
16+
}
17+
}
18+
}) -join ' '
19+
}
20+
21+
Write-FormatViewExpression -ForegroundColor Magenta -If { $_.Arguments -and -not $_.Clauses } -ScriptBlock {
22+
$_.Arguments -join ' '
23+
}
24+
}

ListOfTranspilers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ These are all of the transpilers currently included in PipeScript:
55
|Name |Synopsis |
66
|-------------------------------------------------------------------------------------------------|-------------------------------------------------|
77
|[Aliases](Transpilers/Parameters/Aliases.psx.ps1) |Dynamically Defines Aliases |
8+
|[All](Transpilers/Keywords/All.psx.ps1) |all keyword |
89
|[Assert](Transpilers/Keywords/Assert.psx.ps1) |Assert keyword |
910
|[Await](Transpilers/Keywords/Await.psx.ps1) |awaits asynchronous operations |
1011
|[Bash](Transpilers/Wrappers/Bash.psx.ps1) |Wraps PowerShell in a Bash Script |
@@ -29,6 +30,7 @@ These are all of the transpilers currently included in PipeScript:
2930
|[Inline.CSharp](Transpilers/Inline/Inline.CSharp.psx.ps1) |C# Inline PipeScript Transpiler. |
3031
|[Inline.CSS](Transpilers/Inline/Inline.CSS.psx.ps1) |CSS Inline PipeScript Transpiler. |
3132
|[Inline.Go](Transpilers/Inline/Inline.Go.psx.ps1) |Go PipeScript Transpiler. |
33+
|[Inline.HCL](Transpilers/Inline/Inline.HCL.psx.ps1) |HCL PipeScript Transpiler. |
3234
|[Inline.HLSL](Transpilers/Inline/Inline.HLSL.psx.ps1) |HLSL Inline PipeScript Transpiler. |
3335
|[Inline.HTML](Transpilers/Inline/Inline.HTML.psx.ps1) |HTML PipeScript Transpiler. |
3436
|[Inline.Java](Transpilers/Inline/Inline.Java.psx.ps1) |Java Inline PipeScript Transpiler. |

0 commit comments

Comments
 (0)