Top Level Namespace
Defined in:
Method Summary
-
cat(title : String, use_pager : Bool) : Int32
Function to print the specified note to stdout.
-
delete_note(title : String) : Int32
Function to delete specified note.
-
edit_note(title : String, editor : String = "") : Int32
Function to edit an existing note.
-
list_notes
Function to list all notes.
-
notes_to_json
Function to write all notes in the global notes array to a json file.
-
pull_notes
Function to pull notes from the json file if they are already present, and add them into the global notes array.
-
reset_notes
Function to delete all notes.
-
write_note(title : String, content : String) : Int32
Function to push the note passed to the app to the global notes array.
Method Detail
Function to print the specified note to stdout. Returns 0 if note was successfully printed out, 1 on failure.
Function to delete specified note. Returns 0 if note was successfully deleted, 1 on failure.
Function to edit an existing note. Returns 0 on succesful edit, 1 on failure, and 2 if specifed note does not exist.
Function to pull notes from the json file if they are already present, and add them into the global notes array. Executed at the beginning of the program execution
Function to push the note passed to the app to the global notes array. Returns 0 on success, 1 if note already exists.