You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this awesome library, it looks really awesome.
I was wondering if there is some support or setting that'd allow testing a binary that expects inputs from the user on the terminal.
Currently, I tried setting that up by using the *.toml format and providing a *.stdin file.
That unfortunately doesn't seem to work, as I get the error Failed to initialize input reader from the library I use (inquire). So it seems it needs some kind of proper TTY/PTY to function properly.
All the other features look really great, as my project is a code generator for new projects, and I want to verify that the generation works, where the *.out features is extremely convenient for verification.
The text was updated successfully, but these errors were encountered:
To give some more details about the inquire crate: I use it with the crossterm crate as backend, and it uses its enable_raw_mode when prompting the user. If that one fails (as it does without a TTY), it'll not be able to run the prompt.
So some sort of TTY or PTY seems to be definitely required for this, and likely for other interactive CLI apps too, as it needs some way to access advanced terminal features, rather than just stdin/stdout.
Thanks for this awesome library, it looks really awesome.
I was wondering if there is some support or setting that'd allow testing a binary that expects inputs from the user on the terminal.
Currently, I tried setting that up by using the
*.toml
format and providing a*.stdin
file.That unfortunately doesn't seem to work, as I get the error
Failed to initialize input reader
from the library I use (inquire). So it seems it needs some kind of proper TTY/PTY to function properly.All the other features look really great, as my project is a code generator for new projects, and I want to verify that the generation works, where the
*.out
features is extremely convenient for verification.The text was updated successfully, but these errors were encountered: