pub fn check_config() -> Result<(), Error> {
        if !Config::config_exists() {
            info!("Creating config file...");
            Config::create_config()?;
            trace!("Config file created!")
        }

        Ok(())
    }
/// Checks if config exist and, if not, creates config template.
Checks if config exist and, if not, creates config template.
Checks if config exist and if not creates config template .
pub fn check_config() -> Result<(), Error> {
        if !Config::config_exists() {
            info!("Creating config file...");
            Config::create_config()?;
            trace!("Config file created!")
        }
        Ok(())
    }
pub fn check_config ( ) -> Result < ( ) , Error > { if ! Config :: config_exists ( ) { info ! ( " " ) ; Config :: create_config ( ) ? ; trace ! ( " " ) } Ok ( ( ) ) }
Checks if config exist and, if not, creates config template.
Checks if config exist and if not creates config template .