Skip to content

lumochift/printev

Repository files navigation

GoDoc Build Status codecov Go Report Card

printev

Features

  • 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

Installation

go get -u github.com/lumochift/printev/cmd/printev

Sample run

Source code example

package main

import (
    "fmt"
    "os"
)

func main() {
    fmt.Println(os.Getenv("TEST_ENV_1"))
    fmt.Println(os.Getenv("TEST_ENV_2"))
}

Output

➜   printev -s testdata
List env variable:
TEST_ENV_1
TEST_ENV_2

About

Show what env variable you use

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages