env-utils

command module
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 1 Imported by: 0

README

env-utils

Go Reference For all your environment and secret needs

Deployments

On each merge to production a new version is auto deployed and released. make sure to update the file version.txt!

To Build

From the top level directory run

go install .
go build

you should then be able to call the command with env-utils

Example Usage

There are currently 2 main ways to use this command line tool:

env-utils non-secret populate "sample/non-secret.jsonc"

env-utils secret populate "sample/secret.jsonc"

Both of which populate env vars based on the contents of the jsonc files provided. They both share the following flags:

  • -p or -persist which defaults to true and causes the program to write out the env vars to a file named .secret_env or .non_secret_env in the same directory as the command was called from
  • -l or -local-dev-format which defaults to false and makes the persist file write itself in a format that works with pathpoint's local dev setup
  • -o or -output lets you rename the output file and place it anywhere you want

the secret command also has the flag -r or -region which defaults to us-east-1 and sets the appropriate AWS region.

To persist the secrets to your env after you run the commands, simply run source .secret_env or source .non_secret_env

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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