Scanln only accepts a bare y + clear the stream
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
The issue names files.go and command.go as the places to change. Start by finding where the accept/reject prompt reads user input and how it currently matches 'y'. Done when 'yes' and '1' accept, 'no' and '0' reject, and trailing text such as 'please' is consumed from the input rather than left in the stream. The issue names no test file, so add a case for each input form.
Written by the indexing model from the issue text.
Description
##What
Want to increase the accept/reject options and clear the stream.
##Where
files.go and command.go
##Fixes
Want to accept 'yes' and 1, reject 'no', 0. Also if someone writes 'y please' it sees the y accepts but the please stays in the stream. Makes sure that it is cleared from the stream
- Dominant language
- Go
- Stars
- 1
- Forks
- 2
- Avg merge
- 1h 46m
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from Edwin-metcalf/MetCode
-
testing
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Edwin-metcalf/MetCode#9 ·
-
Add a MakefileOpenenhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Edwin-metcalf/MetCode#8 ·
-
Add a --host flagOpenenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Edwin-metcalf/MetCode#7 ·
-
Add a --version flagOpenenhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Edwin-metcalf/MetCode#6 ·
-
security
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Edwin-metcalf/MetCode#17 ·
All issues in Edwin-metcalf/MetCode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
[Bug]: Bedrock invoke-with-response-stream reports `stop_reason: "end_turn"` for tool-use turnsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
oalders/clodhopper#162 ·
Maintainers usually reply within 1 day
-
component/server severity/minor type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day