Function diary::ops::init::init[][src]

pub fn init(opts: &InitOptions, config: &Config) -> Result<PathBuf, DiaryError>
Expand description

Initialises the diary folder, if possible.

Arguments

  • opts - The options passed by the user at runtime.
  • config - The contents of the config file.

Returns

Either the Path of the new diary folder or a DiaryError if there was an issue with initialisation.