abiosoft / abiosoft/ishell

Easily configurable question prompt for Readline()

オープン
#41 コメント 0 件 リアクション 2 件 担当者 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 を短くまとめたダイジェスト。