Ai_Video / utils.py
cubuvl's picture
Create utils.py
8b9ea3d verified
raw
history blame contribute delete
301 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)