printev

command module
v0.0.0-...-e6aabf1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 10 Imported by: 0

README

Go Report Card

printev

Features

  • Read env var from go and ruby codes
  • Output served on sorted format
NAME:
   printev - Generate env variable from given codes

USAGE:
   printev [global options] command [command options] [arguments...]

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
   --mute, -m                [Optional] Hide preview and log.
   --write, -w               [Optional] Write environment variables found.
   --output value, -o value  [Optional] Output location of generated env files, by default write to env.sample
   --help, -h                show help
   --version, -v             print the version

COPYRIGHT:
   Lumochift™ © 2020

How to get

go get go.lumochift.org/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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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