removed LogCommander
This commit is contained in:
parent
0f603ebf26
commit
19f4f6f6f5
1 changed files with 7 additions and 9 deletions
|
|
@ -90,14 +90,6 @@ class Exit(CommandBase, object):
|
||||||
print("exits linspector")
|
print("exits linspector")
|
||||||
|
|
||||||
|
|
||||||
class LogCommander(Cmd, object):
|
|
||||||
def do_log(self, text):
|
|
||||||
print("executed %s" % text)
|
|
||||||
|
|
||||||
def help_log(self):
|
|
||||||
print("manage logging")
|
|
||||||
|
|
||||||
|
|
||||||
class Command(object):
|
class Command(object):
|
||||||
def __init__(self, name, command, helpText, children=None):
|
def __init__(self, name, command, helpText, children=None):
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
@ -115,7 +107,7 @@ class CommandTree(object):
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
||||||
|
|
||||||
class LishCommander(Exit, LogCommander):
|
class LishCommander(Exit):
|
||||||
def __init__(self, linspectorInterface):
|
def __init__(self, linspectorInterface):
|
||||||
|
|
||||||
super(LishCommander, self).__init__()
|
super(LishCommander, self).__init__()
|
||||||
|
|
@ -208,6 +200,12 @@ class LishCommander(Exit, LogCommander):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def do_log(self, text):
|
||||||
|
print("executed %s" % text)
|
||||||
|
|
||||||
|
def help_log(self):
|
||||||
|
print("manage logging")
|
||||||
|
|
||||||
def do_about(self, text):
|
def do_about(self, text):
|
||||||
self.print_color(GREEN, "Linspector Monitoring\n")
|
self.print_color(GREEN, "Linspector Monitoring\n")
|
||||||
self.print_color(YELLOW, "Developers:")
|
self.print_color(YELLOW, "Developers:")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue