mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
copy
This commit is contained in:
parent
bc4d5ebe88
commit
2e0a64fd35
1 changed files with 27 additions and 0 deletions
|
@ -26,6 +26,9 @@ command to print them on stdout/stderr
|
|||
and return a non-zero exit code.
|
||||
This is how most linters normally operate.
|
||||
|
||||
By default, aider will lint any files which it edits.
|
||||
You can disable this with the `--no-auto-lint` switch.
|
||||
|
||||
## Testing
|
||||
|
||||
You can configure aider to run your test suite
|
||||
|
@ -38,6 +41,9 @@ command to print them on stdout/stderr
|
|||
and return a non-zero exit code.
|
||||
This is how most test tools normally operate.
|
||||
|
||||
To have aider automatically run the test command,
|
||||
use the `--auto-test` switch.
|
||||
|
||||
## Compiled languages
|
||||
|
||||
If you want to have aider compile code after each edit, you
|
||||
|
@ -56,4 +62,25 @@ You could create a small shell script for this.
|
|||
Or you may be able to do something as simple as
|
||||
`--test-cmd "dotnet build && dotnet test"`.
|
||||
|
||||
## Manually running code
|
||||
|
||||
You can use the `/run` command in the chat to run your code
|
||||
and optionally share the output with aider.
|
||||
This can be useful to share error messages or to show aider
|
||||
the code's output before asking for changes or corrections.
|
||||
|
||||
<div class="chat-transcript" markdown="1">
|
||||
> Aider v0.43.5-dev
|
||||
|
||||
#### /run python tmp.py
|
||||
|
||||
> Traceback (most recent call last):
|
||||
> File "myscript.py", line 22, in <module>
|
||||
> raise ValueError("something bad happened")
|
||||
> ValueError: something bad happened
|
||||
>
|
||||
> Add the output to the chat? y
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue