added python
This commit is contained in:
parent
5f382da83b
commit
863ea67d06
2 changed files with 11 additions and 5 deletions
|
|
@ -16,7 +16,7 @@ VERSION = "0.1"
|
|||
class LishFrontend(Frontend):
|
||||
def __init__(self, **kwargs):
|
||||
|
||||
print(kwargs)
|
||||
#print(kwargs)
|
||||
#self.jobs = kwargs["jobs"]
|
||||
|
||||
commander = LishCommander(kwargs)
|
||||
|
|
@ -150,6 +150,16 @@ class LishCommander(Exit, ShellCommander, LogCommander):
|
|||
except KeyboardInterrupt, ke:
|
||||
pass
|
||||
|
||||
def do_python(self, text):
|
||||
exec text
|
||||
|
||||
def help_python(self):
|
||||
print '''
|
||||
executes python using 'exec'.
|
||||
'''
|
||||
|
||||
|
||||
|
||||
|
||||
def help_hostgroup(self):
|
||||
print '''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue