MCPcopy Index your code
hub / github.com/cli/cli / NewJSONExporter

Function NewJSONExporter

pkg/cmdutil/json_flags.go:210–212  ·  view source on GitHub ↗

NewJSONExporter returns an Exporter to emit JSON.

()

Source from the content-addressed store, hash-verified

208
209// NewJSONExporter returns an Exporter to emit JSON.
210func NewJSONExporter() *jsonExporter {
211 return &jsonExporter{}
212}
213
214func (e *jsonExporter) Fields() []string {
215 return e.fields

Callers 15

jsonExporterFunction · 0.92
TestListRunFunction · 0.92
Test_listRunFunction · 0.92
TestExportReleasesFunction · 0.92
Test_statusRunFunction · 0.92
Test_viewRunFunction · 0.92
Test_listRunFunction · 0.92
TestRunClose_JSONFunction · 0.92
TestRunCopy_JSONFunction · 0.92
TestRunMarkTemplate_JSONFunction · 0.92
TestRunDeleteField_JSONFunction · 0.92
TestRunList_JSONFunction · 0.92

Calls

no outgoing calls

Tested by 15

jsonExporterFunction · 0.74
TestListRunFunction · 0.74
Test_listRunFunction · 0.74
TestExportReleasesFunction · 0.74
Test_statusRunFunction · 0.74
Test_viewRunFunction · 0.74
Test_listRunFunction · 0.74
TestRunClose_JSONFunction · 0.74
TestRunCopy_JSONFunction · 0.74
TestRunMarkTemplate_JSONFunction · 0.74
TestRunDeleteField_JSONFunction · 0.74
TestRunList_JSONFunction · 0.74