[−][src]Module hm::config
Define our Config
and Worker
.
Implement how to take the config.toml
and turn it into a Config { files: Vec<ManagedObject> }
.
Describes the Worker
object, which is how we communicate back to our main()
thread
about how our task
is going.
Structs
Config | Represents just the file |
ManagedObject | We're a super-set of all the kinds of |
Worker | Allow us to communicate meaningfully back to |
Functions
as_managed_objects | Convenience function that allows getting a HashMap from a |
deserialize_file | Open our config file and read the entire contents into hopefully
valid toml. Either we gucci and return back a |
deserialize_files | This takes our file/task array and turns them into |
ensure_config_dir | Make sure $XDG_CONFIG_DIR exists. On Linux and similar this is /home/<username>/.config; macOS /Users/<username>/.config. |
get_mo |