diff options
| author | Santo Cariotti <sancn@live.com> | 2017-07-21 14:42:23 +0200 | 
|---|---|---|
| committer | Santo Cariotti <sancn@live.com> | 2017-07-21 14:42:23 +0200 | 
| commit | 6224d8a897c783e10c7e14238f0c84aa82033082 (patch) | |
| tree | b687d6164567be1185953399f33039fe2ec87561 /lib/listcommands.py | |
| parent | 1451011e86dcbcaba2e43013ee86042ad27dc6b5 (diff) | |
Added TODO funcs
It is possible add and delete items into TODO's list
Diffstat (limited to 'lib/listcommands.py')
| -rw-r--r-- | lib/listcommands.py | 8 | 
1 files changed, 6 insertions, 2 deletions
| 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 | 
