mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
feat: Add output and status code dumping
This commit is contained in:
parent
55049c312e
commit
d2cc7b676a
1 changed files with 5 additions and 3 deletions
|
@ -357,13 +357,15 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import sys
|
import sys
|
||||||
|
from aider.dump import dump
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
command = " ".join(sys.argv[1:])
|
command = " ".join(sys.argv[1:])
|
||||||
exit_status, output = run_interactive_command(command)
|
exit_status, output = run_interactive_command(command)
|
||||||
print(f"Command exited with status {exit_status}")
|
print("Exit status:")
|
||||||
print("Full output:")
|
dump(exit_status)
|
||||||
print(output)
|
print("\nFull output:")
|
||||||
|
dump(output)
|
||||||
else:
|
else:
|
||||||
print("Usage: python -m aider.utils <command>")
|
print("Usage: python -m aider.utils <command>")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue