From 6224d8a897c783e10c7e14238f0c84aa82033082 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 21 Jul 2017 14:42:23 +0200 Subject: Added TODO funcs It is possible add and delete items into TODO's list --- lib/listcommands.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/listcommands.py') diff --git a/lib/listcommands.py b/lib/listcommands.py index 3f4f3ad..d8c7ad9 100644 --- a/lib/listcommands.py +++ b/lib/listcommands.py @@ -9,14 +9,18 @@ class ListCommands(object): info = { 'info' : 'this is stout', 'set' : ['set a value', 3], - 'get' : ['return a value', 3] + 'get' : ['return a value', 3], + 'add' : 'new TODO', + 'del' : ['del TODO', 2] } commands = { 'quit' : None, 'clear' : None, 'set' : ['user'], - 'get' : ['i', ['user', 'host', 'port', 'unix_socket_path', 'db']] + 'get' : ['i', ['user', 'host', 'port', 'unix_socket_path', 'db'], 'todo', 'ctodo'], + 'add' : None, + 'del' : None, } @staticmethod -- cgit v1.2.3-18-g5258