Implement equivalent of bash expect.
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 265
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
The bash expect command allows you to provide a set of answers to input prompts.
.e.g
'ssh -a'...run
..expect('user', username)
..expect('password', password)
Process class attaches to stdin as well as stdout.
Monitors stdout and when it sees the expected stdin it responds with the 'output' arg.
expect(String expect, String response)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Process class and its stdin/stdout handling. Trace how output is monitored and input is written; this is done when an expect(String expect, String response) API can match prompts and send responses, with tests covering the interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100