feat: port user
commands from influxdb
(#99)
This commit is contained in:
@ -28,6 +28,11 @@ func (t *terminalStdio) Write(p []byte) (int, error) {
|
||||
return t.Stdout.Write(p)
|
||||
}
|
||||
|
||||
// WriteErr prints some bytes to stderr.
|
||||
func (t *terminalStdio) WriteErr(p []byte) (int, error) {
|
||||
return t.Stderr.Write(p)
|
||||
}
|
||||
|
||||
type bannerTemplateData struct {
|
||||
Message string
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ 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)
|
||||
|
Reference in New Issue
Block a user