;)
Expect – Linux tool for automating interactive programs
11–20 of 92 posts
Re: Expect – Linux tool for automating interactive programs
#12Re: Expect – Linux tool for automating interactive programs
#13Re: Expect – Linux tool for automating interactive programs
#14Re: Expect – Linux tool for automating interactive programs
#15I used it to let aider suggest and run shell commands [1]. This is handy, so aider can offer to run the code it just wrote for you, run migrations, install dependencies, etc.
Using pexepect makes it easy for aider to run interactive shell commands and capture their output. This allows aider to fix bugs or suggest next steps based on the command’s output, error messages, etc.
Re: Expect – Linux tool for automating interactive programs
#16I just used python pexpect [0] for a fun project. I believe pexpect was inspired by the original Unix expect command. I used it to let aider suggest and run shell commands [1]. This is handy, so aider can offer to run the code it just wrote for you, run migrations, install dependencies, etc. Using pexepect makes it easy for aider to run interactive shell commands and capture their output. This allows aider to fix bug…
1. aider makes some change 2. aider then tells itself to use pexpect to check what changes it made 3. pexpect runs, opens browser somehow captures error messages if any and feeds that back?
i am pretty sure i misunderstood something
Re: Expect – Linux tool for automating interactive programs
#17As a default, I'd keep everything in one language: https://pypi.org/project/pyexpect/
Re: Expect – Linux tool for automating interactive programs
#18Re: Expect – Linux tool for automating interactive programs
#19I just used python pexpect [0] for a fun project. I believe pexpect was inspired by the original Unix expect command. I used it to let aider suggest and run shell commands [1]. This is handy, so aider can offer to run the code it just wrote for you, run migrations, install dependencies, etc. Using pexepect makes it easy for aider to run interactive shell commands and capture their output. This allows aider to fix bug…
Re: Expect – Linux tool for automating interactive programs
#20As a default, I'd keep everything in one language: https://pypi.org/project/pyexpect/
Pyexpect is in another class of software. It is a Python testing utility that provides expressive assertions for unit testing.
On the other hand, the Unix expect program, and its Python equivalent pexpect, are used for automating interactive applications.