diff --git a/infra/conf/command/command.go b/infra/conf/command/command.go index 9f8c12d56..532ba2b8e 100644 --- a/infra/conf/command/command.go +++ b/infra/conf/command/command.go @@ -3,6 +3,7 @@ package command //go:generate errorgen import ( + "bufio" "os" "github.com/golang/protobuf/proto" @@ -27,7 +28,7 @@ func (c *ConfigCommand) Description() control.Description { } func (c *ConfigCommand) Execute(args []string) error { - pbConfig, err := serial.LoadJSONConfig(os.Stdin) + pbConfig, err := serial.LoadJSONConfig(bufio.NewReader(os.Stdin)) if err != nil { return newError("failed to parse json config").Base(err) }