abiosoft / abiosoft/ishell

Easily configurable question prompt for Readline()

Đang mở
#41 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
1.8k
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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")
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.