You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.ps1.md
+27-15Lines changed: 27 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,22 +14,14 @@ PipeScript can be run interactively, or used to build more with less code.
14
14
15
15
PipeScript can be used to template ```.>{$psLanguages.Count}<.``` languages, and implicitly interpert ```.>{$psInterpreters.Count}<.``` languages.
16
16
17
-
If you like PipeScript, why not use it to star this repository?:
17
+
## Implicit Interpretation
18
18
19
-
~~~PowerShell
20
-
# Install PipeScript
21
-
Install-Module PipeScript -Scope CurrentUser
22
-
# Import PipeScript
23
-
Import-Module PipeScript -Force
19
+
Any Language can define an .Interpeter, and PipeScript can use this information to implicitly interpret other languages.
24
20
25
-
# Then use Invoke-PipeScript to run
26
-
Invoke-PipeScript -ScriptBlock {
27
-
param([Parameter(Mandatory)]$gitHubPat)
28
-
# Using PipeScript, you can use URLs as commands, so we just need to call the REST api
29
-
put https://api.github.com/user/starred/StartAutomating/PipeScript -Headers @{
30
-
Authorization="token $gitHubPat"
31
-
}
32
-
} -Parameter @{GitHubPat = $YourGitHubPat}
21
+
For example, if you have PipeScript and NodeJS installed, you can:
22
+
23
+
~~~PowerShell
24
+
.\RunAJavaScriptFile.js "With Arguments!"
33
25
~~~
34
26
35
27
## Making Scripting more Programmable
@@ -54,4 +46,24 @@ PipeScript can work with ```.>{$psLanguages.Count}<.``` languages.
54
46
55
47
Embedding PipeScript within any of these languages allows you to generate any of these languages with parameterized scripts, thus removing some of the tedium of programming.
56
48
57
-
See the [Supported Languages](docs/SupportedLanguages.md) you can use to transform your scripts.
49
+
See the [Supported Languages](docs/SupportedLanguages.md) you can use to transform your scripts.
50
+
51
+
## Like It? Star It!
52
+
53
+
If you like PipeScript, why not use it to star this repository?:
54
+
55
+
~~~PowerShell
56
+
# Install PipeScript
57
+
Install-Module PipeScript -Scope CurrentUser
58
+
# Import PipeScript
59
+
Import-Module PipeScript -Force
60
+
61
+
# Then use Invoke-PipeScript to run
62
+
Invoke-PipeScript -ScriptBlock {
63
+
param([Parameter(Mandatory)]$gitHubPat)
64
+
# Using PipeScript, you can use URLs as commands, so we just need to call the REST api
65
+
put https://api.github.com/user/starred/StartAutomating/PipeScript -Headers @{
0 commit comments