MCPcopy
hub / github.com/budtmo/docker-android / start

Function start

cli/src/app.py:139–156  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

137@cli.command()
138@click.argument("app", type=click.Choice([app.value for app in Application.App]))
139def start(app):
140 selected_app = str(app).lower()
141 if selected_app == Application.App.APPIUM.value.lower():
142 start_appium()
143 elif selected_app == Application.App.DEVICE.value.lower():
144 start_device()
145 elif selected_app == Application.App.DISPLAY_SCREEN.value.lower():
146 start_display_screen()
147 elif selected_app == Application.App.DISPLAY_WM.value.lower():
148 start_display_wm()
149 elif selected_app == Application.App.PORT_FORWARDER.value.lower():
150 start_port_forwarder()
151 elif selected_app == Application.App.VNC_SERVER.value.lower():
152 start_vnc_server()
153 elif selected_app == Application.App.VNC_WEB.value.lower():
154 start_vnc_web()
155 else:
156 logger.error(f"application '{selected_app}' is not supported!")
157
158
159class SharedComponent(Enum):

Callers

nothing calls this directly

Calls 7

start_appiumFunction · 0.85
start_deviceFunction · 0.85
start_display_screenFunction · 0.85
start_display_wmFunction · 0.85
start_port_forwarderFunction · 0.85
start_vnc_serverFunction · 0.85
start_vnc_webFunction · 0.85

Tested by

no test coverage detected