Thyme::Config
Inherits Reference / Object
Reads THYMERC_FILE, parses it, and stores its configuration. There should be one instance of Config which gets passed to all other classes. All values are optional.
Constants
THYMERC_FILE = "#{ENV["HOME"]}/.thymerc"
Constructors
new(input : YAML::Any)
THYMERC_FILE is validated on initialization
Class methods
parse(file = THYMERC_FILE)
Returns a Config from a YAML file
Instance methods
color_break
color_default
color_warning
hooks
options
repeat
set_repeat(count : String | Nil = nil)
Called when the --repeat flag is used. If no argument is given, falls back to default used in THYMERC_FILE. If no default is there, set to 0 for unlimited repeats.
status_align
status_override
timer
timer_break
timer_warning