Skip to content

Commit ef567e8

Browse files
author
James Brundage
committed
Adding requires keyword (Fixes #293)
1 parent 13570be commit ef567e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Transpilers/Keywords/Requires.psx.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
.SYNOPSIS
33
requires one or more modules, variables, or types.
44
.DESCRIPTION
5-
Requires will require on or more modules, variables, or types to exist.
5+
Requires will require on or more modules, variables, or types to exist.
6+
.EXAMPLE
7+
requires latest pipescript # will require the latest version of pipescript
8+
.EXAMPLE
9+
requires variable $pid $sid # will error, because there is no $sid
610
#>
711

812
using namespace System.Management.Automation.Language

0 commit comments

Comments
 (0)