MCPcopy
hub / github.com/Aider-AI/aider / printable_shell_command

Function printable_shell_command

aider/utils.py:335–345  ·  view source on GitHub ↗

Convert a list of command arguments to a properly shell-escaped string. Args: cmd_list (list): List of command arguments. Returns: str: Shell-escaped command string.

(cmd_list)

Source from the content-addressed store, hash-verified

333
334
335def printable_shell_command(cmd_list):
336 """
337 Convert a list of command arguments to a properly shell-escaped string.
338
339 Args:
340 cmd_list (list): List of command arguments.
341
342 Returns:
343 str: Shell-escaped command string.
344 """
345 return oslex.join(cmd_list)

Callers 2

run_installFunction · 0.85
check_pip_install_extraFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected