Function initialize

Source
pub fn initialize(
    config: &Config,
    dir: &Option<String>,
) -> Result<(), PathError>
Expand description

Initialize the timelog directory supplied and create a .timelogrc config file. If no directory is supplied default to ~/timelog

§Errors

§Panics

If the canonicalized path cannot be converted to a string.