Easily configurable question prompt for Readline()
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Look at the Readline method in the ishell source code to understand how prompts are currently set. The change involves modifying Readline to accept an optional prompt string parameter and using it before reading input. Check existing tests for Readline to see how they are structured and add a test for the new behavior. Running the project's test suite will confirm the implementation works.
Written by the indexing model from the issue text.
Description
Sorry about opening bunch of issues, just trying to gather my thoughts around what a Inquirer.js clone in Go would look like.
Currently, to read input from the user without initializing a shell session, the code looks like this:
sh := ishell.New()
sh.SetPrompt("First name :")
firstName := sh.Readline()
sh.SetPrompt("Last name :")
lastName := sh.Readline()
A more preferable way to work with the library would be like this:
...
firstName := sh.Readline("First name")
lastName := sh.Readline("Last name")
- Dominant language
- Go
- Stars
- 1.8k
- Forks
- 213
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 abiosoft/ishell
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
enhancement pkg:sdk
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
aws/aws-durable-execution-sdk-go#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudflare/cloudflared#1761 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day