Easily configurable question prompt for Readline()
未关闭
- 主要语言
- Go
- 星标
- 1.8k
- 派生
- 213
- PR 合并指标
- 30 天内没有已合并 PR
描述
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")
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。