Function diary::ops::open::open[][src]

pub fn open(
    opts: &OpenFileOptions,
    config: &Config,
    user_input: fn(P: PathBuf) -> Result<()>
) -> Result<(), DiaryError>
Expand description

Opens a specific diary entry for editing.

Arguments

  • opts - The options passed by the user at runtime.
  • config - The contents of the config file.
  • user_input - A function of type UserInput. A function that takes a file and adds content to it.