Top Level Namespace

Defined in:

Method Summary

Method Detail

def cat(title : String, use_pager : Bool) : Int32 #

Function to print the specified note to stdout. Returns 0 if note was successfully printed out, 1 on failure.


[View source]
def delete_note(title : String) : Int32 #

Function to delete specified note. Returns 0 if note was successfully deleted, 1 on failure.


[View source]
def edit_note(title : String, editor : String = "") : Int32 #

Function to edit an existing note. Returns 0 on succesful edit, 1 on failure, and 2 if specifed note does not exist.


[View source]
def list_notes #

Function to list all notes.


[View source]
def notes_to_json #

Function to write all notes in the global notes array to a json file.


[View source]
def pull_notes #

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


[View source]
def reset_notes #

Function to delete all notes.


[View source]
def write_note(title : String, content : String) : Int32 #

Function to push the note passed to the app to the global notes array. Returns 0 on success, 1 if note already exists.


[View source]