MCPcopy
hub / github.com/cli/cli / NewHandler

Function NewHandler

pkg/cmd/attestation/io/handler.go:17–25  ·  view source on GitHub ↗
(io *iostreams.IOStreams)

Source from the content-addressed store, hash-verified

15}
16
17func NewHandler(io *iostreams.IOStreams) *Handler {
18 enabled, _ := utils.IsDebugEnabled()
19
20 return &Handler{
21 ColorScheme: io.ColorScheme(),
22 IO: io,
23 debugEnabled: enabled,
24 }
25}
26
27func NewTestHandler() *Handler {
28 testIO, _, _, _ := iostreams.Test()

Callers 8

TestRunInspectFunction · 0.92
TestJSONOutputFunction · 0.92
NewInspectCmdFunction · 0.92
NewTrustedRootCmdFunction · 0.92
NewVerifyCmdFunction · 0.92
TestJSONOutputFunction · 0.92
NewDownloadCmdFunction · 0.92
NewTestHandlerFunction · 0.85

Calls 2

IsDebugEnabledFunction · 0.92
ColorSchemeMethod · 0.80

Tested by 3

TestRunInspectFunction · 0.74
TestJSONOutputFunction · 0.74
TestJSONOutputFunction · 0.74