Commit 9f314eef authored by Bram Schoenmakers's avatar Bram Schoenmakers

Add some new commands.

parent 8d33b9fc
import Command
class ListContextCommand(Command.Command):
def __init__(self, p_args, p_todolist):
super(ListContextCommand, self).__init__(p_args, p_todolist)
def execute(self):
for p in sorted(self.todolist.contexts()):
print p
import Command
class ListProjectCommand(Command.Command):
def __init__(self, p_args, p_todolist):
super(ListProjectCommand, self).__init__(p_args, p_todolist)
def execute(self):
for p in sorted(self.todolist.projects()):
print p
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment