open

Function open 

Source
pub fn open(
    opts: &OpenFileOptions,
    diary: &Diary,
    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.
  • diary - Struct representing the diary.
  • user_input - A function of type UserInput. A function that takes a file and adds content to it.