env

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 12 Imported by: 0

README

Introduction

Env is an alternative lookup tool for Environment Variables. It can be used to:

  • Get an environment variable, ensuring the environment variable exists.
  • Search for environment variables, interactively and programmatically.
  • Export a list of required environment variables to a DotEnv file.

Env is written in Go and builds into a native binary.

See the user documentation for more information and pre-built downloads. Use the code documentation for specifics about code symbols.

Installation

go install janmarten.name/env

Project status

Statistic State
Downloads GitHub Releases Downloads
Workflows Build Release Documentation GitHub deployments
Current version Stable version GitHub Release Date GitHub commits since latest release (by date)
Go version GitHub go.mod Go version
Source code size Code size in bytes
Code quality Go Report Card Codecov
License License

Documentation

Overview

Env

More than ever, modern development relies on environment variables. To easily debug the local environment or export it, a chain of commands specific to your operating system would do. However, env wants to solve this in a modern way, cross platform.

Features

  • Get an environment variable, ensuring the environment variable exists.
  • Search for environment variables, interactively and programmatically.
  • Export a list of required environment variables to a DotEnv file.
  • Set, update and unset environment variables programmatically.

Directories

Path Synopsis
TODO: > Split up in separate files > command.go > application.go > descriptor.go > Document symbols > Write unit tests Final notes: This package DOES NOT hold a stable public API and is meant for internal purposes only.
TODO: > Split up in separate files > command.go > application.go > descriptor.go > Document symbols > Write unit tests Final notes: This package DOES NOT hold a stable public API and is meant for internal purposes only.
encoding
Package encoding provides interfaces for configuration encoders and decoders.
Package encoding provides interfaces for configuration encoders and decoders.
encoding/json
Package json implements an encoder and decoder for a JSON representation of config.Variable.
Package json implements an encoder and decoder for a JSON representation of config.Variable.
encoding/text
Package text implements an encoder and decoder for a text based representation of config.Variable.
Package text implements an encoder and decoder for a text based representation of config.Variable.
export
TODO: > Write unit tests > Document symbols
TODO: > Write unit tests > Document symbols
TODO: > Write unit tests
TODO: > Write unit tests
plugins
ext-config-encoding-xml
Package main implements an encoder and decoder for an XML representation of config.Variable.
Package main implements an encoder and decoder for an XML representation of config.Variable.
TODO: > Write unit tests > Document symbols > Convert type of Request.Suggestions: > uint -> uint8 255 suggestions is enough > Add additional commands to manage environment variables > set > unset > export > import > Rename KeyParallel -> CtxParallel
TODO: > Write unit tests > Document symbols > Convert type of Request.Suggestions: > uint -> uint8 255 suggestions is enough > Add additional commands to manage environment variables > set > unset > export > import > Rename KeyParallel -> CtxParallel

Jump to

Keyboard shortcuts

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