[−][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 |
Enums
| LinuxDistro | |
| OS |
Functions
| 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 |
| determine_os | Windows or Linux? If Linux, let's determine our distro, because package managers and stuff. |
| ensure_config_dir | Make sure $XDG_CONFIG_DIR exists. On Linux and similar this is /home/<username>/.config; macOS /Users/<username>/.config, Windows C:\Users\<username>\.config |