{"id":27442382,"url":"https://github.com/drpsychick/toml_update","last_synced_at":"2025-07-13T10:33:04.938Z","repository":{"id":65194164,"uuid":"367003124","full_name":"DrPsychick/toml_update","owner":"DrPsychick","description":"Update a toml configuration file from ENV variables","archived":false,"fork":false,"pushed_at":"2025-05-04T18:49:10.000Z","size":61,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T19:35:36.099Z","etag":null,"topics":["12-factor","go","golang","toml","toml-config"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrPsychick.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-05-13T09:45:32.000Z","updated_at":"2025-04-21T08:13:02.000Z","dependencies_parsed_at":"2024-03-29T09:24:55.710Z","dependency_job_id":"6a11f4d5-3b57-4174-8c6d-5c861cb76a1d","html_url":"https://github.com/DrPsychick/toml_update","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/DrPsychick/toml_update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrPsychick%2Ftoml_update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrPsychick%2Ftoml_update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrPsychick%2Ftoml_update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrPsychick%2Ftoml_update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrPsychick","download_url":"https://codeload.github.com/DrPsychick/toml_update/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrPsychick%2Ftoml_update/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265128203,"owners_count":23715621,"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":["12-factor","go","golang","toml","toml-config"],"created_at":"2025-04-15T00:27:11.749Z","updated_at":"2025-07-13T10:33:04.892Z","avatar_url":"https://github.com/DrPsychick.png","language":"Go","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=FTXDN7LCDWUEA\u0026source=url","https://github.com/sponsors/DrPsychick"],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://img.shields.io/circleci/build/github/DrPsychick/toml_update)](https://app.circleci.com/pipelines/github/DrPsychick/toml_update)\n[![Coverage Status](https://coveralls.io/repos/github/DrPsychick/toml_update/badge.svg?branch=main)](https://coveralls.io/github/DrPsychick/toml_update?branch=master)\n[![license](https://img.shields.io/github/license/drpsychick/toml_update.svg)](https://github.com/drpsychick/toml_update/blob/master/LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/drpsychick/toml_update.svg)](https://github.com/drpsychick/toml_update)\n[![Contributors](https://img.shields.io/github/contributors/drpsychick/toml_update.svg)](https://github.com/drpsychick/toml_update/graphs/contributors)\n[![Paypal](https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=FTXDN7LCDWUEA\u0026source=url)\n[![GitHub Sponsor](https://img.shields.io/badge/github-sponsor-blue?logo=github)](https://github.com/sponsors/DrPsychick)\n\n[![GitHub issues](https://img.shields.io/github/issues/drpsychick/toml_update.svg)](https://github.com/drpsychick/toml_update/issues)\n[![GitHub closed issues](https://img.shields.io/github/issues-closed/drpsychick/toml_update.svg)](https://github.com/drpsychick/toml_update/issues?q=is%3Aissue+is%3Aclosed)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/drpsychick/toml_update.svg)](https://github.com/drpsychick/toml_update/pulls)\n[![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/drpsychick/toml_update.svg)](https://github.com/drpsychick/toml_update/pulls?q=is%3Apr+is%3Aclosed)\n\n# toml_update\nUpdate a toml configuration file from ENV variables\n\n## Example\nThis example uses a `telegraf` configuration file, same works for other projects using the same configuration format\n```shell\ndocker run --rm telegraf telegraf config \u003e test.conf\nexport CONF_UPDATE=test.conf\nexport CONF_PREFIX=PFX\n\nexport PFX_myvar1=inputs.cpu.totalcpu=false\nexport PFX_whatever2=agent.interval=\"20s\"\nexport PFX_ping_urls=inputs.ping.urls=[\"google.com\",\"amazon.com\"]\nexport PFX_emptysection=inputs.netstat.enabled=#no configuration\n\ngrep -e 'totalcpu' -e '^[^#]*interval = ' test.conf\n# if you've cloned the repo, simply run `go build toml_update.go` to get the binary\n./toml_update\ngrep -e 'totalcpu' -e '^[^#]*interval = ' test.conf\n```\n\n## Built and released with [goreleaser](https://goreleaser.com)\n### Setup\n```shell\ndocker run --rm --privileged \\\n  -v $PWD:/go/src/github.com/drpsychick/toml_update \\\n  -v /var/run/docker.sock:/var/run/docker.sock \\\n  -w /go/src/github.com/drpsychick/toml_update \\\n  goreleaser/goreleaser init\n  \ngo mod init github.com/drpsychick/toml_update\n```\n\n### Test\n```shell\ndocker run --rm --privileged \\\n  -v $PWD:/go/src/github.com/drpsychick/toml_update \\\n  -v /var/run/docker.sock:/var/run/docker.sock \\\n  -w /go/src/github.com/drpsychick/toml_update \\\n  goreleaser/goreleaser --snapshot --skip=publish --clean\n```\n\n### Release\n```shell\ngit tag -a v0.0.8 -m \"Reviewed\"\ngit push origin v0.0.8\n\ndocker run --rm --privileged \\\n  -v $PWD:/go/src/github.com/drpsychick/toml_update \\\n  -v /var/run/docker.sock:/var/run/docker.sock \\\n  -w /go/src/github.com/drpsychick/toml_update \\\n  -e GITHUB_TOKEN=XXX \\\n  goreleaser/goreleaser release --clean\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrpsychick%2Ftoml_update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrpsychick%2Ftoml_update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrpsychick%2Ftoml_update/lists"}