abiosoft / abiosoft/ishell

Easily configurable question prompt for Readline()

未关闭
#41 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。