influx-cli/pkg/stdio/stdio.go
Dane Strandboge 23e73e9146
feat: reimplement influx secret CLI command (#125)
* refactor: rename `getPassword` to `getSecret`
2021-06-21 13:33:51 -05:00

14 lines
309 B
Go

package stdio
import "io"
type StdIO interface {
io.Writer
WriteErr(p []byte) (n int, err error)
Banner(message string) error
Error(message string) error
GetStringInput(prompt, defaultValue string) (string, error)
GetSecret(prompt string, minLen int) (string, error)
GetConfirm(prompt string) bool
}