mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 05:12:54 +00:00 
			
		
		
		
	Implement command to change layout from cli
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user