Config manages the application configuration.
Constants
VALID_STYLES = {"auto", "dark", "light", "ascii"}
Constructors
load
Loads configuration from the config file.
Returns default config if file doesn't exist.
SourceClass methods
config_dir
Returns the path to the config directory.
Sourceconfig_file
Returns the path to the config file.
Sourcecreate_default
Creates the config file with default values if it doesn't exist.
Sourceopen_in_editor
Opens the config file in the default editor.
SourceInstance methods
save
Saves the configuration to the config file.
Sourceto_yaml
Returns the configuration as a YAML string.
Source