https://github.com/guumaster/env-replacer
An envsubst replacement
https://github.com/guumaster/env-replacer
Last synced: 4 months ago
JSON representation
An envsubst replacement
- Host: GitHub
- URL: https://github.com/guumaster/env-replacer
- Owner: guumaster
- License: mit
- Created: 2020-03-07T20:40:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-07T21:08:38.000Z (over 5 years ago)
- Last Synced: 2024-10-12T12:27:27.425Z (9 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/guumaster/env-replacer/actions?query=workflow%3ATest)
[](https://github.com/guumaster/env-replacer/releases)
[](https://goreportcard.com/report/github.com/guumaster/env-replacer)
[](https://github.com/guumaster/env-replacer/LICENSE)
# Env ReplacerA powerful tool to replace environment variables on template files.
## Why?
I don't like to maintain `bash` scripts, I don't like `gettext` and `envsubst`, so this is a replacement.
## Installation
Go to [release page](https://github.com/guumaster/env-replacer/releases) and download the binary you need.
## Examples
```bash
$> env-replacer --path /some-path-to-tpl-files
```## Usage
NAME:
env-replacer - replace env variables on files
USAGE:
env-replacer [global options] [arguments...]
VERSION:
dev
AUTHOR:
guumaster
GLOBAL OPTIONS:
--path value path to scan for templates
--files value file pattern to search (default: "*.tpl")
--quiet, -q hide report (default: false)
--no-recursive don't scan path recursively (default: false)
--no-truncate don't truncate dst files (default: false)
--no-error early quit on error (default: false)
--no-missing don't write files with missing variables (default: false)
--no-empty fail also with variables (default: false)
--strict same as --no-empty and --no-missing combined (default: false)
--version print the version (default: false)### Dependencies & Refs
- [bmatcuk/doublestar](https://github.com/bmatcuk/doublestar)
- [urfave/cli](https://github.com/urfave/cli)### LICENSE
[MIT license](LICENSE)
### Author(s)
* [guumaster](https://github.com/guumaster)