Skip to main content

init_config

Function init_config 

Source
pub fn init_config() -> Result<bool>
Expand description

Initializes the config file at the default path.

Creates the directory if it doesn’t exist. Does not overwrite an existing file.

§Errors

Returns an error if the config directory cannot be created or the file cannot be written.