many cleanups in lish
This commit is contained in:
parent
19f4f6f6f5
commit
6f62c8a6dd
1 changed files with 2 additions and 6 deletions
|
|
@ -42,10 +42,8 @@ END = "\033[0m"
|
||||||
class LishFrontend(Frontend):
|
class LishFrontend(Frontend):
|
||||||
def __init__(self, linpsectorInterface):
|
def __init__(self, linpsectorInterface):
|
||||||
super(LishFrontend, self)
|
super(LishFrontend, self)
|
||||||
#print(kwargs)
|
|
||||||
#self.jobs = kwargs["jobs"]
|
|
||||||
|
|
||||||
commander = LishCommander(linpsectorInterface)
|
commander = LishCommander(linpsectorInterface)
|
||||||
|
|
||||||
run = True
|
run = True
|
||||||
while run:
|
while run:
|
||||||
try:
|
try:
|
||||||
|
|
@ -87,7 +85,7 @@ class Exit(CommandBase, object):
|
||||||
return self.can_exit()
|
return self.can_exit()
|
||||||
|
|
||||||
def help_exit(self):
|
def help_exit(self):
|
||||||
print("exits linspector")
|
print("Exits Linspector")
|
||||||
|
|
||||||
|
|
||||||
class Command(object):
|
class Command(object):
|
||||||
|
|
@ -109,11 +107,9 @@ class CommandTree(object):
|
||||||
|
|
||||||
class LishCommander(Exit):
|
class LishCommander(Exit):
|
||||||
def __init__(self, linspectorInterface):
|
def __init__(self, linspectorInterface):
|
||||||
|
|
||||||
super(LishCommander, self).__init__()
|
super(LishCommander, self).__init__()
|
||||||
|
|
||||||
self.prompt = BLUE + "<Lish@" + socket.gethostname() + ">: " + END
|
self.prompt = BLUE + "<Lish@" + socket.gethostname() + ">: " + END
|
||||||
|
|
||||||
self.interface = linspectorInterface
|
self.interface = linspectorInterface
|
||||||
|
|
||||||
def do_python(self, text):
|
def do_python(self, text):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue