CLI::UI.ask multi-line input
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.1k
- Forks
- 57
- Avg merge
- 2h 55m
- Merged PRs (30d)
- 2
Description
CLI::UI.ask used to take multi line input:
> User ids:
1
2
3
Since some upgrades ( we've upgraded to Ruby 3.3, maybe some change in our CLI leading to the console ) the input is now splitting from multi-line input to multi-prompt input.
> User ids:
1
> Order id
2
> Blah blah
3
Anyone has the same issue, is there a way to indicate the ask is expecting a multiline input? (nothing here https://github.com/Shopify/cli-ui/blob/main/lib/cli/ui/prompt.rb#L128 )
Thank you for any help provided
Contributor guide
No contributing guide indexed for this repository
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 at lib/cli/ui/prompt.rb around line 128 and inspect how CLI::UI.ask reads input. Reproduce the reported difference between multiline input and repeated prompts, considering the Ruby 3.3 or console-related upgrade context. Done means multiline input is handled as intended, with coverage for the reported interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100