modulepackage
0.1.0
Repository: https://github.com/yukitsune/template-cli.git
Documentation: pkg.go.dev
# README
🏗 Render Go Template 🚧
Harness the power of Go templates in a lightweight CLI or GitHub Action
Quick start
GitHub Action
steps:
- name: Render template files
uses: yukitsune/[email protected]
with:
args: --input ./templates/file1 --input ./templates/file2 \
--value "person.name=Jason" \
--value "person.age=${{ secrets.PERSON_AGE }}" \
--value "secret=${{ secrets.GITHUB_TOKEN }}" \
--output .
Example workflow
This repo also contains an example workflow (source). Feel free to use this as a guide!
CLI
template -i ./templates/file1 -i ./templates/file2 \
-v "person.name=Jason" \
-v "person.age=${{ secrets.PERSON_AGE }}" \
-v "secret=${{ secrets.GITHUB_TOKEN }}" \
-o .
Contributing
Contributions are what make the open source community such an amazing place to be, learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
feature/AmazingFeature
) - Commit your Changes
- Push to the Branch
- Open a Pull Request