Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Easily configurable question prompt for Readline()

Open Beginner friendly
#41 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
go
Domain
cli

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abiosoft/ishell

All issues in abiosoft/ishell

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.