abiosoft / abiosoft/ishell

Easily configurable question prompt for Readline()

Open
#41 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.8k
Forks
213
PR merge metrics
No merged PRs in 30d

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:

```go
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:

```go
...
firstName := sh.Readline("First name")
lastName := sh.Readline("Last name")
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.