Skip to main content

read_user_file

Function read_user_file 

Source
pub fn read_user_file() -> Result<FilePreview, ConfigEditError>
Expand description

Opens the user’s actual source, including comments and invalid TOML, creating defaults if absent.

§Errors

Returns an error if the user config directory cannot be found or the starter file cannot be created.