{"id":22012402,"url":"https://github.com/malud/temgo","last_synced_at":"2025-05-06T21:41:54.692Z","repository":{"id":57528490,"uuid":"63277704","full_name":"malud/temgo","owner":"malud","description":"Environment variable based template engine like Jinja2 for your container config files. Lightweight, fast, go cli","archived":false,"fork":false,"pushed_at":"2020-09-03T10:15:11.000Z","size":87,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T03:12:11.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-13T20:35:46.000Z","updated_at":"2022-02-22T09:04:26.000Z","dependencies_parsed_at":"2022-08-30T11:51:07.748Z","dependency_job_id":null,"html_url":"https://github.com/malud/temgo","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malud%2Ftemgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malud%2Ftemgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malud%2Ftemgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malud%2Ftemgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malud","download_url":"https://codeload.github.com/malud/temgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252775826,"owners_count":21802454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T03:12:41.049Z","updated_at":"2025-05-06T21:41:54.672Z","avatar_url":"https://github.com/malud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# temgo [![Build Status](https://travis-ci.org/malud/temgo.svg?branch=master)](https://travis-ci.org/malud/temgo)\n\nEnvironment variable based template engine like Jinja2 for your container config files. Lightweight, fast, go cli\n\n**Note:** wip\n\n## Usage\n\nDefine variables with the format `{{ VAR_IABLE }}` inside your template files and set them in your environment before **tg** execution.\n\nCurrently with stdin/stdout and inline support.\n\n ```bash\n# redirection\nTESTVAR=foo  tg \u003c /opt/templates/file1.ext \u003e /dest/config/file1.ext\n# or inline\nTESTVAR=foo tg -i /dest/config/file1.ext\n ```\n\nHowever, using the inline option on your templates will overwrite them.\nIt is recommended to use this option on resettable files.\n\nPlaceholders which have no corresponding environment variable gets not replaced.\n`echo 'foo {{ NOT_SET }} bar' | ./tg` results in `foo {{ NOT_SET }} bar`\nIn case of a required variable you can use the strict mode:\n`echo 'foo {{ NOT_SET }} bar' | ./tg -s` results in an error.\n\n### TODO\n* flags for file in/out\n* prefix flag for env var e.g. SERVICE_XXX\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalud%2Ftemgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalud%2Ftemgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalud%2Ftemgo/lists"}