We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 380bb3f commit 3949e46Copy full SHA for 3949e46
get/get_test.go
@@ -16,8 +16,9 @@ import (
16
"sigs.k8s.io/controller-runtime/pkg/client"
17
)
18
19
-// NewTestCmd creates a Cmd for testing with the given writer and output format.
20
-// This is a convenience helper that properly initializes the output writer.
+// NewTestCmd creates a [Cmd] for testing with the given writer and output format.
+// It initializes the format.Writer and calls BeforeApply to ensure the output
21
+// is properly configured.
22
func NewTestCmd(w io.Writer, outFormat outputFormat, opts ...func(*Cmd)) *Cmd {
23
cmd := &Cmd{
24
output: output{
0 commit comments