package
0.43.0
Repository: https://github.com/wtfutil/wtf.git
Documentation: pkg.go.dev

# Functions

Copy copies src to dest, doesn't matter if src is a directory or a file.
CreateFile creates the named file in the config directory, if it does not already exist.
Fetch secret for `service`.
Initialize takes care of settings up the initial state of WTF configuration It ensures necessary directories and files exist.
LoadWtfConfigFile loads the specified config file.
Load module secrets.
NewCommonSettingsFromModule returns a common settings configuration tailed to the given module.
NewDefaultColorConfig creates and returns a config.Config-compatible configuration struct using a DefaultColorTheme to pre-populate all the relevant values.
NewDefaultColorTheme creates and returns an instance of DefaultColorTheme.
NewPositionSettingsFromYAML creates and returns a new instance of cfg.Position.
NewValidations creates and returns an instance of Validations.
ParseAsMapOrList takes a configuration key and attempts to parse it first as a map and then as a list.
ParseTimeString takes a configuration key and attempts to parse it first as an int and then as a duration (int + time unit).
No description provided by the author
WtfConfigDir returns the absolute path to the configuration directory.

# Constants

WtfConfigDirV1 defines the path to the first version of configuration.
WtfConfigDirV2 defines the path to the second version of the configuration.
WtfConfigFile defines the name of the default config file.
XdgConfigDir defines the path to the minimal XDG-compatible configuration directory.

# Structs

BorderTheme defines the default color scheme for drawing widget borders.
CheckboxTheme defines the default color scheme for drawing checkable rows in widgets.
ColorTheme is an alamgam of all the default color settings.
Common defines a set of common configuration settings applicable to all modules.
No description provided by the author
PositionSettings represents the onscreen location of a widget.
RowTheme defines the default color scheme for row text.
No description provided by the author
No description provided by the author
No description provided by the author
TextTheme defines the default color scheme for text rendering.
Validations represent a collection of config setting validations.
WidgetTheme defines the default color scheme for the widget rect itself.

# Interfaces

Validatable is implemented by any value that validates a configuration setting.