env

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: ISC Imports: 13 Imported by: 0

Documentation

Overview

Package env implements the "dgit env" command

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &base.Command{
	Name:      "env",
	Usage:     "dgit env [-u] [-w] [var ...]",
	ShortHelp: "print DGit environment information",
	LongHelp: `Env prints DGit environment information.

By default env prints information as a shell script. If one or more
variable names is given as arguments, env prints the value of each
named variable on its own line.

The -u flag requires one or more arguments and unsets
the default setting for the named environment variables,
if one has been set with 'go env -w'.

The -w flag requires one or more arguments of the
form NAME=VALUE and changes the default settings
of the named environment variables to the given values. If the same
NAME is provided multiple times, the last one takes effect.

For more about environment variables, see 'dgit help environment'.
	`,
}

Functions

func ConfigFromEnv

func ConfigFromEnv() config.Config

ConfigFromEnv returns a Config object matching the current environment.

func MergeEnv

func MergeEnv()

MergeEnv merges the program's environment with that specified in DGITENV. Values already specified in the environment take precedence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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