Module config

Module config 

Source

Structs§

Config
Configuration for the Advent of Code client.
ConfigBuilder
A builder interface for specifying configuration settings to the Advent of Client client. Configuration settings have sensible default values, and should only be changed when the user wants custom behavior.

Enums§

ConfigError
Errors that can occur when configuring client settings.

Functions§

load_config
Loads client options from the local machine.
read_config_from_current_dir
Loads configuration values from a TOML file in the working directory.
read_config_from_env_vars
Returns a copy of config with settings that match any non-empty Advent of Code environment variables.
read_config_from_file
Loads configuration values from a TOML file.
read_config_from_user_config_dirs
Loads configuration data from a user’s config directory relative to their home directory. Any option values loaded here will overwrite values loaded previously.