From 1a6e9a89d1d8ed75edb3e30da2dd7b50b67902cb Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Fri, 4 Oct 2013 18:01:22 +0200 Subject: [PATCH] just playing with jobs in lish... ;) --- lib/frontends/lish.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/frontends/lish.py b/lib/frontends/lish.py index 8d3e639..8b91de9 100644 --- a/lib/frontends/lish.py +++ b/lib/frontends/lish.py @@ -153,6 +153,14 @@ class LishCommander(Exit, ShellCommander, LogCommander): def do_python(self, text): exec text + def do_jobs(self, text): + if text == "list": + for job in self._scheduler.get_jobs(): + print job + + def help_jobs(self): + print "Job helper functions" + def help_python(self): print ''' executes python using 'exec'.