-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
93 additions
and
23 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 @@ | ||
**/*.md whitespace=space-before-tab |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Yampl (yaml + tmpl) is a simple tool to template yaml values based on line-comments. | ||
|
||
This command can work on stdin/stdout or on files similarly to GNU sed: | ||
- If not positional args are given, it will listen for input on stdin. | ||
- It will continue to read input until EOF is encountered. | ||
- By default, it will print to stdout. | ||
- The `-i` flag will make it update files in-place. | ||
- Multiple files can be given, and they will all be templated. | ||
|
||
Simple Examples (Full example at https://github.com/clevyr/go-yampl#examples): | ||
|
||
$ echo 'name: Clevyr #yampl {{ .name }}' | yampl -v name='Clevyr Inc.' | ||
name: Clevyr Inc. #yampl {{ .name }} | ||
$ echo 'name: Clevyr #yampl {{ upper .Value }}' | yampl | ||
name: CLEVYR #yampl {{ upper .Value }} | ||
$ echo 'image: nginx:stable-alpine #yampl {{ repo .Value }}:{{ .tag }}' | yampl -v tag=stable | ||
image: nginx:stable #yampl {{ repo .Value }}:{{ .tag }} | ||
|
||
Template Function Reference: | ||
- https://github.com/clevyr/go-yampl#functions | ||
- https://masterminds.github.io/sprig/ | ||
|
||
Template Variable Reference: | ||
- https://github.com/clevyr/go-yampl#variables |
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