env-replacer

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2020 License: MIT

README

Tests GitHub Release Go Report Card License

Env Replacer

A 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 and download the binary you need.

Examples

$> 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 <guuweb@gmail.com>

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
LICENSE

MIT license

Author(s)

Directories

Path Synopsis
NAME:
NAME:
pkg
replacer
Package replacer contains the app with methods replace env vars.
Package replacer contains the app with methods replace env vars.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL