Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guumaster/env-replacer
An envsubst replacement
https://github.com/guumaster/env-replacer
Last synced: 3 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-07T21:08:38.000Z (almost 5 years ago)
- Last Synced: 2024-10-12T12:27:27.425Z (4 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
[![Tests](https://img.shields.io/github/workflow/status/guumaster/env-replacer/Test)](https://github.com/guumaster/env-replacer/actions?query=workflow%3ATest)
[![GitHub Release](https://img.shields.io/github/release/guumaster/env-replacer.svg?logo=github&labelColor=262b30)](https://github.com/guumaster/env-replacer/releases)
[![Go Report Card](https://goreportcard.com/badge/github.com/guumaster/env-replacer)](https://goreportcard.com/report/github.com/guumaster/env-replacer)
[![License](https://img.shields.io/github/license/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)