def viewsinglenote(docopt_args): noteid = docopt_args["<note_id>"] if docopt_args["-m"]: note = NoteOperations() contents = note.view(noteid) else: note = NoteOperations() contents = note.view(noteid) with indent(4, quote=' >'): puts( colored.green(contents.get("title", "========NOT FOUND======="))) with indent(4): puts( colored.yellow(contents.get("body", "========NOT FOUND=======")))