Skip to content

Commit

Permalink
Add task info command
Browse files Browse the repository at this point in the history
  • Loading branch information
kostajh committed Apr 5, 2013
1 parent 23cd997 commit 8fe9ed8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions taskw/warrior.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@ def task_done(self, **kw):
self._task_remove(id, 'pending')
return task

def task_info(self, **kw):
id, task = self.get_task(**kw)
info = subprocess.Popen(['task', 'rc:%s' % self.config_filename, 'rc.verbose=nothing', str(id), 'info'], stderr=subprocess.STDOUT, stdout = subprocess.PIPE)
out, err = info.communicate()
if err:
return err
return out

def task_update(self, task):
id, _task = self.get_task(uuid=task['uuid'])

Expand Down

0 comments on commit 8fe9ed8

Please sign in to comment.