tempio

command module
v0.0.0-...-ebd274b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

tempio

A template helper for docker images which using text/template golang engine with sprig functions.

Support conf format:

  • json

Basic Example

tempio \
    -conf /config/coredns.json \
    -template /usr/share/tempio/corefile \
    -out /etc/corefile

Pipe Example

echo '{"some": "value"}' | tempio \
    -template /usr/share/tempio/corefile \
    -out /etc/corefile

No Outfile Example

When -out is not supplied, the result is printed to the console.

$ echo '{"some": "value"}' | tempio \
    -template /usr/share/tempio/corefile
> {"some": "value", "other": "value"}

Add tempio to your GitHub actions

- name: Setup tempio
  uses: home-assistant/tempio@main
- name: Run tempio
  run: tempio -help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL