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 ¶
ConfigFromEnv returns a Config object matching the current environment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.