MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / show_shell

Function show_shell

core/display.py:86–97  ·  view source on GitHub ↗

Show shell command and its output.

(command, output, error=False)

Source from the content-addressed store, hash-verified

84 border_style='yellow', box=box.ROUNDED))
85
86def show_shell(command, output, error=False):
87 """Show shell command and its output."""
88 content = Text()
89 content.append(f'$ {command}\n', style='bold cyan')
90 if output.strip():
91 style = 'red' if error else 'white'
92 content.append(output.strip(), style=style)
93 else:
94 content.append('(no output)', style='dim')
95 border = 'red' if error else 'blue'
96 console.print(Panel(content, title='Shell',
97 border_style=border, box=box.ROUNDED))
98
99def show_tool_generic(name, args, result):
100 """Show any other tool call cleanly."""

Callers 3

execute_toolFunction · 0.90
run_agentFunction · 0.90
run_tdd_loopFunction · 0.90

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected