nv

command module
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 10 Imported by: 0

README

Introduction

Nv 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.

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

Installation

Either install the application through Go:

go install janmarten.name/nv

Or clone the repository and install from source:

git clone git@github.com:johmanx10/nv.git
cd nv
make bin/nv

For builds from source, please refer to Go platform specific information.

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

Special thanks

Supporter Support
JetBrains logo This project is supported by JetBrains through providing a license for their Go IDE, Goland.

Goland IDE

Documentation

Overview

Nv

Modern development relies on environment variables to keep track of variances between environments. To easily debug the local environment or export it, a chain of commands specific to your operating system would do. However, nv 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
Package config describes the structure of a Variable and lists variables for the current Environment.
Package config describes the structure of a Variable and lists variables for the current Environment.
Package debug exposes hooks and tools to provide and read out debugging information about the application.
Package debug exposes hooks and tools to provide and read out debugging information about the application.
Package neighbor holds structs to describe the results of FindNearest, which performs nearest neighbor checks against a provided subject and options.
Package neighbor holds structs to describe the results of FindNearest, which performs nearest neighbor checks against a provided subject and options.
Package main implements an config.Encoder and config.Decoder for an XML representation of config.Variable.
Package main implements an config.Encoder and config.Decoder for an XML representation of config.Variable.
Package search holds a search Engine, which is specialized in searching through config.Variables.
Package search holds a search Engine, which is specialized in searching through config.Variables.

Jump to

Keyboard shortcuts

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