Skip to main content

Module config

Module config 

Source
Expand description

Loading and validating config.yaml.

template_path: "~/projects/aoc/{{year}}/day{{pad day}}/{{language}}"
cookie: "<advent of code session cookie>"
editor: "code"

Only template_path is required. The template is parsed - and therefore validated - at load time rather than on first use.

Structs§

Config
Validated configuration.

Enums§

ConfigError
Errors produced while loading configuration.

Constants§

DEFAULT_EDITOR
The default editor launched by aoc code.

Type Aliases§

Warning
A non-fatal problem noticed while loading configuration.