MCPcopy
hub / github.com/cli/cli / Write

Method Write

pkg/cmdutil/json_flags.go:200–200  ·  view source on GitHub ↗
(io *iostreams.IOStreams, data interface{})

Source from the content-addressed store, hash-verified

198type Exporter interface {
199 Fields() []string
200 Write(io *iostreams.IOStreams, data interface{}) error
201}
202
203type jsonExporter struct {

Callers 15

NewCmdExtensionFunction · 0.95
Test_exportFormat_WriteFunction · 0.65
editFunction · 0.65
WriteMethod · 0.65
WriteMethod · 0.65
listRunFunction · 0.65
viewRunFunction · 0.65
listRunFunction · 0.65
verifyRunFunction · 0.65
viewRunFunction · 0.65
TestExportReleasesFunction · 0.65
listRunFunction · 0.65

Implementers 4

jsonExporterpkg/cmdutil/json_flags.go
verboseExporterpkg/cmd/cache/list/list_test.go
testExporterpkg/cmd/repo/view/view_test.go
TestExporterpkg/cmd/run/shared/test.go

Calls

no outgoing calls

Tested by 15

Test_exportFormat_WriteFunction · 0.52
WriteMethod · 0.52
WriteMethod · 0.52
TestExportReleasesFunction · 0.52
Test_viewRunFunction · 0.52
Test_createRunFunction · 0.52
createTarGzBufferFunction · 0.52
createZipBufferFunction · 0.52
TestExtractTarGzFunction · 0.52
TestExtractZipFunction · 0.52
TestIssueCreate_recoverFunction · 0.52
TestJsonArrayWriterFunction · 0.52