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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址