ai-video-composer / utils.py
radames's picture
add command output
b19f57b
raw
history blame
302 Bytes
def format_bash_command(tokens):
formatted_command = []
indent = " " * 4
for token in tokens:
if token.startswith("-"):
formatted_command.append("\n" + indent + token)
else:
formatted_command.append(" " + token)
return "".join(formatted_command)