Skip to content

Commit 3270975

Browse files
StartAutomatingStartAutomating
authored andcommitted
Updating README:
Moving around content and adding implicit interpretation explanation
1 parent d78633a commit 3270975

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

README.md

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,14 @@ PipeScript can be run interactively, or used to build more with less code.
1414

1515
PipeScript can be used to template 61 languages, and implicitly interpert 16 languages.
1616

17-
If you like PipeScript, why not use it to star this repository?:
17+
## Implicit Interpretation
1818

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.
2420

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!"
3325
~~~
3426

3527
## Making Scripting more Programmable
@@ -55,3 +47,23 @@ PipeScript can work with 61 languages.
5547
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.
5648

5749
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 @{
66+
Authorization="token $gitHubPat"
67+
}
68+
} -Parameter @{GitHubPat = $YourGitHubPat}
69+
~~~

0 commit comments

Comments
 (0)