pub fn write_hk_file<P: AsRef<Path>>(path: P, config: &HkConfig) -> Result<()>
Writes a HkConfig to a file.