- Read env var from go and ruby codes
- Output served on the sorted format
NAME:
printev - Generate env variable from given codes
USAGE:
main [global options] command [command options] [arguments...]
VERSION:
1.0.1
DESCRIPTION:
Go Env Printer
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--source value, -s value [Optional] Target source code. (default: current dir)
--mute, -m [Optional] Hide preview and log. (default: false)
--write, -w [Optional] Write environment variables found. (default: false)
--output value, -o value [Optional] Output location of generated env files, by default write to printev.sample (default: "printev.sample")
--help, -h show help (default: false)
--version, -v print the version (default: false)
COPYRIGHT:
Lumochift™ © 2020
go get -u github.com/lumochift/printev/cmd/printev
package main
import (
"fmt"
"os"
)
func main() {
fmt.Println(os.Getenv("TEST_ENV_1"))
fmt.Println(os.Getenv("TEST_ENV_2"))
}
➜ printev -s testdata
List env variable:
TEST_ENV_1
TEST_ENV_2