Documentation ¶
Overview ¶
Package env implements the "shrt env" command
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &base.Command{
Name: "env",
Usage: "shrt env [-u] [-w] [var ...]",
ShortHelp: "print Shrt environment information",
LongHelp: `Env prints Shrt 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 'shrt 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 'shrt help environment'.
`,
}
Functions ¶
func ConfigFromEnv ¶
func ConfigFromEnv() shrt.Config
ConfigFromEnv returns a Config object matching the current environment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.