-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Porting TOML Template to Language Function (Fixes #628)
- Loading branch information
Showing
4 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Language.TCL | ||
------------ | ||
|
||
|
||
|
||
|
||
### Synopsis | ||
TCL/TK Template Transpiler. | ||
|
||
|
||
|
||
--- | ||
|
||
|
||
### Description | ||
|
||
Allows PipeScript to generate TCL or TK. | ||
Because TCL Scripts only allow single-line comments, this is done using a pair of comment markers. | ||
# { or # PipeScript{ begins a PipeScript block | ||
# } or # }PipeScript ends a PipeScript block | ||
~~~tcl | ||
# { | ||
Uncommented lines between these two points will be ignored | ||
# # Commented lines will become PipeScript / PowerShell. | ||
# param($message = "hello world") | ||
# "puts `"$message`"" | ||
# } | ||
~~~ | ||
|
||
|
||
|
||
--- | ||
|
||
|
||
### Examples | ||
> EXAMPLE 1 | ||
```PowerShell | ||
Invoke-PipeScript { | ||
$tclScript = ' | ||
# { | ||
Uncommented lines between these two points will be ignored | ||
# # Commented lines will become PipeScript / PowerShell. | ||
# param($message = "hello world") | ||
# "puts `"$message`"" | ||
# } | ||
' | ||
[OutputFile('.\HelloWorld.ps1.tcl')]$tclScript | ||
} | ||
Invoke-PipeScript .\HelloWorld.ps1.tcl | ||
``` | ||
|
||
|
||
--- | ||
|
||
|
||
### Syntax | ||
```PowerShell | ||
Language.TCL [<CommonParameters>] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters