add parameter to getDescription
This commit is contained in:
parent
482394c92a
commit
9744e428cb
@ -7,8 +7,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
# TTY Change
|
||||
if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
|
||||
|
@ -7,8 +7,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
|
||||
return environment
|
||||
|
@ -7,7 +7,7 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
|
@ -8,8 +8,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'wordEcho'):
|
||||
return environment
|
||||
|
@ -15,8 +15,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return 'No Description found'
|
||||
|
||||
def run(self, environment):
|
||||
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'general', 'autoSpellCheck'):
|
||||
return environment
|
||||
|
@ -7,10 +7,10 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
|
||||
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charDeleteEcho'):
|
||||
return environment
|
||||
|
||||
|
@ -7,8 +7,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming'):
|
||||
return environment
|
||||
|
@ -8,8 +8,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'promote', 'enabled'):
|
||||
return environment
|
||||
|
@ -7,8 +7,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
|
||||
return environment
|
||||
|
@ -7,8 +7,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
|
||||
return environment
|
||||
|
@ -7,8 +7,9 @@ class command():
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
def getDescription(self, environment):
|
||||
return ''
|
||||
|
||||
def run(self, environment):
|
||||
if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
|
||||
return environment
|
||||
|
@ -54,7 +54,8 @@ class commandManager():
|
||||
if self.commandExists(environment, command, section):
|
||||
try:
|
||||
if environment['generalInformation']['tutorialMode']:
|
||||
environment['commands'][section][command].getDescription(environment)
|
||||
description = environment['commands'][section][command].getDescription(environment)
|
||||
environment['runtime']['outputManager'].presentText(environment, description, interrupt=True)
|
||||
else:
|
||||
environment['commands'][section][command].run(environment)
|
||||
except Exception as e:
|
||||
|
Loading…
Reference in New Issue
Block a user