All Projects → schneidexe → tpl

schneidexe / tpl

Licence: MIT license
Use go templates with simple and complex environment variables

Programming Languages

go
31211 projects - #10 most used programming language
Smarty
1635 projects
shell
77523 projects

Projects that are alternatives of or similar to tpl

Temperature Monitor
Raspberry Pi-based home temperature monitoring network.
Stars: ✭ 187 (+938.89%)
Mutual labels:  environment
Loft
Namespace & Virtual Cluster Manager for Kubernetes - Lightweight Virtual Clusters, Self-Service Provisioning for Engineers and 70% Cost Savings with Sleep Mode
Stars: ✭ 239 (+1227.78%)
Mutual labels:  environment
ini
📝 Go INI config management. support multi file load, data override merge. parse ENV variable, parse variable reference. Dotenv file parse and loader. INI配置读取管理,支持多文件加载,数据覆盖合并, 解析ENV变量, 解析变量引用。DotEnv 解析加载
Stars: ✭ 72 (+300%)
Mutual labels:  environment
Env Var
Verification, sanitization, and type coercion for environment variables in Node.js
Stars: ✭ 201 (+1016.67%)
Mutual labels:  environment
Setup Miniconda
Set up your GitHub Actions workflow with conda via miniconda
Stars: ✭ 222 (+1133.33%)
Mutual labels:  environment
adopt-a-drain
A web application that allows citizens to "adopt" a storm drain in San Francisco. In use, and in development at other brigades. Looking for a maintainer or someone interested in developing further in collaboration with others across the country.
Stars: ✭ 43 (+138.89%)
Mutual labels:  environment
Env Ci
Get environment variables exposed by CI services
Stars: ✭ 180 (+900%)
Mutual labels:  environment
Fruit-API
A Universal Deep Reinforcement Learning Framework
Stars: ✭ 61 (+238.89%)
Mutual labels:  environment
Ma Gym
A collection of multi agent environments based on OpenAI gym.
Stars: ✭ 226 (+1155.56%)
Mutual labels:  environment
ai-learning-environments
List of environments and competitions for RL and AI training
Stars: ✭ 14 (-22.22%)
Mutual labels:  environment
Terraform Aws Elastic Beanstalk Environment
Terraform module to provision an AWS Elastic Beanstalk Environment
Stars: ✭ 211 (+1072.22%)
Mutual labels:  environment
Rails Env Favicon
Gem to display the rails environment on the favicon
Stars: ✭ 212 (+1077.78%)
Mutual labels:  environment
bandmaster
Simple and easily extendable Go library for managing runtime services & dependencies (datastores, APIs, MQs, custom...).
Stars: ✭ 43 (+138.89%)
Mutual labels:  environment
Emacs Direnv
direnv integration for emacs
Stars: ✭ 194 (+977.78%)
Mutual labels:  environment
coffee-boots
Support property-based configuring of multiple Caffeine caches for Spring Cache abstraction.
Stars: ✭ 22 (+22.22%)
Mutual labels:  environment
Gym Sokoban
Sokoban environment for OpenAI Gym
Stars: ✭ 186 (+933.33%)
Mutual labels:  environment
Config
12 factor configuration as a typesafe struct in as little as two function calls
Stars: ✭ 251 (+1294.44%)
Mutual labels:  environment
jest-environment-selenium
Jest environment for running Selenium WebDriver tests
Stars: ✭ 28 (+55.56%)
Mutual labels:  environment
kapten
Simple containerized development environments directly from the command line
Stars: ✭ 53 (+194.44%)
Mutual labels:  environment
dotenvy
Speed up your production sites by ditching .env for key/value variable pairs as Apache, Nginx, and shell equivalents
Stars: ✭ 31 (+72.22%)
Mutual labels:  environment

tpl

tpl is build for generating config files from templates using simple or complex (lists, maps, objects) shell environment variables. Since the binary has zero dependencies it is build for docker but you can use it across all platform and operating systems.

tpl uses sprig to extend golang's template capabilities.

Check the test section and have a look at test.tpl (template) and text.txt (result) in test folder for examples.

setup

Just download the binary for your OS and arch from the releases page.

If you want to use it inside your docker image you can add this to your Dockerfile:

ADD https://github.com/schneidexe/tpl/releases/download/v0.6.1/tpl-linux-amd64 /bin/tpl
RUN chmod a+x /bin/tpl

build

Local:

go get github.com/schneidexe/tpl@latest

X-Platform:

go get github.com/mitchellh/gox
gox -osarch="darwin/amd64 darwin/arm64 linux/386 linux/amd64 linux/arm64 windows/386 windows/amd64"

test

./test.sh
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].