Documentation
¶
Overview ¶
Package env provides accessors to the known environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Config ¶
func Config(lookup LookupFunc) (string, bool)
Config returns configuration file path specified via environment variables.
func Theme ¶
func Theme(lookup LookupFunc) (string, bool)
Theme returns theme name specified via environment variables.
Types ¶
type Color ¶
type Color string
Color is a color setting that can be specified via environment variables.
Valid values for Color setting.
func ColorSetting ¶
func ColorSetting(lookup LookupFunc) Color
ColorSetting checks environment variables for variables LOGFTXT_COLOR and NO_COLOR.
All command-line software which outputs text with ANSI color added should check for the presence of a NO_COLOR environment variable that, when present (regardless of its value), prevents the addition of ANSI color.
type LookupFunc ¶
LookupFunc is an environment variable lookup function.