Skip to content

Commit b50790c

Browse files
StartAutomatingStartAutomating
authored andcommitted
Adding requires keyword (Fixes #293)
1 parent 4b2b51c commit b50790c

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

Transpilers/Keywords/README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ This directory contains the implementations of PipeScript language keywords.
77
## Keyword List
88

99

10-
|DisplayName |Synopsis |
11-
|------------------------|-----------------------------------------------|
12-
|[All](All.psx.ps1) |[all keyword](All.psx.ps1) |
13-
|[Assert](Assert.psx.ps1)|[Assert keyword](Assert.psx.ps1) |
14-
|[Await](Await.psx.ps1) |[awaits asynchronous operations](Await.psx.ps1)|
15-
|[New](New.psx.ps1) |['new' keyword](New.psx.ps1) |
16-
|[Until](Until.psx.ps1) |[until keyword](Until.psx.ps1) |
10+
|DisplayName |Synopsis |
11+
|----------------------------|----------------------------------------------------------------------|
12+
|[All](All.psx.ps1) |[all keyword](All.psx.ps1) |
13+
|[Assert](Assert.psx.ps1) |[Assert keyword](Assert.psx.ps1) |
14+
|[Await](Await.psx.ps1) |[awaits asynchronous operations](Await.psx.ps1) |
15+
|[New](New.psx.ps1) |['new' keyword](New.psx.ps1) |
16+
|[Requires](Requires.psx.ps1)|[requires one or more modules, variables, or types.](Requires.psx.ps1)|
17+
|[Until](Until.psx.ps1) |[until keyword](Until.psx.ps1) |
1718

1819

1920

@@ -207,6 +208,20 @@ This directory contains the implementations of PipeScript language keywords.
207208
.> { new 'https://schema.org/Thing' }
208209
~~~
209210

211+
## Requires Example 1
212+
213+
214+
~~~PowerShell
215+
requires latest pipescript # will require the latest version of pipescript
216+
~~~
217+
218+
## Requires Example 2
219+
220+
221+
~~~PowerShell
222+
requires variable $pid $sid # will error, because there is no $sid
223+
~~~
224+
210225
## Until Example 1
211226

212227

0 commit comments

Comments
 (0)