mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-09 09:26:35 +00:00
18 lines
284 B
Go
18 lines
284 B
Go
// Package stdio wraps os.Stdin and os.Stdout for testing.
|
|
package stdio
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
|
|
"github.com/google/wire"
|
|
)
|
|
|
|
var Set = wire.NewSet(
|
|
wire.InterfaceValue(new(Stdin), os.Stdin),
|
|
wire.InterfaceValue(new(Stdout), os.Stdout),
|
|
)
|
|
|
|
type Stdout io.Writer
|
|
type Stdin io.Reader
|