mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
add a reader that takes stdin (#7074)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
@@ -134,6 +135,7 @@ func RunCustom(args []string, runOpts *RunOptions) int {
|
||||
ErrorColor: cli.UiColorRed,
|
||||
WarnColor: cli.UiColorYellow,
|
||||
Ui: &cli.BasicUi{
|
||||
Reader: bufio.NewReader(os.Stdin),
|
||||
Writer: runOpts.Stdout,
|
||||
ErrorWriter: uiErrWriter,
|
||||
},
|
||||
@@ -146,6 +148,7 @@ func RunCustom(args []string, runOpts *RunOptions) int {
|
||||
ErrorColor: cli.UiColorRed,
|
||||
WarnColor: cli.UiColorYellow,
|
||||
Ui: &cli.BasicUi{
|
||||
Reader: bufio.NewReader(os.Stdin),
|
||||
Writer: runOpts.Stdout,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user