mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-15 02:07:17 +00:00
Implement command to change layout from cli
This commit is contained in:
parent
d6ff80230f
commit
41d6fa7417
@ -43,6 +43,14 @@ class TestCommands(TerminalCommands):
|
|||||||
'shellcmd': f'{seppuku}\n'}
|
'shellcmd': f'{seppuku}\n'}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
def command_changelayout(self, *args):
|
||||||
|
message = {'key': 'dashboard',
|
||||||
|
'data': {'command': 'layout',
|
||||||
|
'layout': args[0]}}
|
||||||
|
if len(args) >= 2:
|
||||||
|
message['data']['hide_messages'] = (args[1] in ['yes', 'y', '1', 'true'])
|
||||||
|
TFWServerConnector().send(message)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
|
Loading…
Reference in New Issue
Block a user