Skip to content

Commit e5b3adf

Browse files
author
James Brundage
committed
Updating README:
Moving around content and adding implicit interpretation explanation
1 parent 91ac67d commit e5b3adf

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

README.ps1.md

Lines changed: 27 additions & 15 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 ```.>{$psLanguages.Count}<.``` languages, and implicitly interpert ```.>{$psInterpreters.Count}<.``` 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
@@ -54,4 +46,24 @@ PipeScript can work with ```.>{$psLanguages.Count}<.``` languages.
5446

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

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

0 commit comments

Comments
 (0)