MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / ifVerbose

Function ifVerbose

internal/cli/lifecycle.go:97–102  ·  view source on GitHub ↗
(out interface{ Write(p []byte) (int, error) }, verbose bool)

Source from the content-addressed store, hash-verified

95}
96
97func ifVerbose(out interface{ Write(p []byte) (int, error) }, verbose bool) interface{ Write(p []byte) (int, error) } {
98 if verbose {
99 return out
100 }
101 return discardWriter{}
102}
103
104type discardWriter struct{}
105

Callers 1

lifecycleCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected