expandenv

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: MIT Imports: 6 Imported by: 0

README

expandenv

Replace environment variables from input file

Usage

expandenv [--base64] FILE

Installation

Grab a binary from Releases or build from source: go get github.com/vially/expandenv

Basic Example

$ cat input.txt
Hello $GREETER_NAME
$ export GREETER_NAME=John
$ expandenv input.txt > output.txt
$ cat output.txt
Hello John

Base64 Encode Example

$ cat secrets.yaml
apiVersion: v1
kind: Secret
metadata:
  name: mysecret
type: Opaque
data:
  password: $PASSWORD
$ export PASSWORD=s3cret
$ expandenv --base64 secrets.yaml
apiVersion: v1
kind: Secret
metadata:
  name: mysecret
type: Opaque
data:
  password: czNjcmV0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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