MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / console_clear

Function console_clear

unity_cli/cli/commands/console.py:161–168  ·  view source on GitHub ↗

Wipe the Unity Console (same as clicking 'Clear' in the Console window).

(ctx: typer.Context)

Source from the content-addressed store, hash-verified

159
160@console_app.command("clear")
161def console_clear(ctx: typer.Context) -> None:
162 """Wipe the Unity Console (same as clicking 'Clear' in the Console window)."""
163 context: CLIContext = ctx.obj
164 try:
165 context.client.console.clear()
166 print_success("Console cleared")
167 except UnityCLIError as e:
168 _handle_error(e)

Callers

nothing calls this directly

Calls 3

print_successFunction · 0.90
_handle_errorFunction · 0.90
clearMethod · 0.45

Tested by

no test coverage detected