MCPcopy
hub / github.com/cli/cli / SetFields

Method SetFields

pkg/cmdutil/json_flags.go:218–220  ·  view source on GitHub ↗
(fields []string)

Source from the content-addressed store, hash-verified

216}
217
218func (e *jsonExporter) SetFields(fields []string) {
219 e.fields = fields
220}
221
222// Write serializes data into JSON output written to w. If the object passed as data implements exportable,
223// or if data is a map or slice of exportable object, ExportData() will be called on each object to obtain

Callers 15

jsonExporterFunction · 0.80
TestListRunFunction · 0.80
Test_listRunFunction · 0.80
TestExportReleasesFunction · 0.80
Test_statusRunFunction · 0.80
Test_viewRunFunction · 0.80
Test_listRunFunction · 0.80
Test_readDirRunFunction · 0.80
TestViewRunFunction · 0.80
TestListRunFunction · 0.80
Test_readFileRunFunction · 0.80
TestNewCmdGetFunction · 0.80

Calls

no outgoing calls

Tested by 15

jsonExporterFunction · 0.64
TestListRunFunction · 0.64
Test_listRunFunction · 0.64
TestExportReleasesFunction · 0.64
Test_statusRunFunction · 0.64
Test_viewRunFunction · 0.64
Test_listRunFunction · 0.64
Test_readDirRunFunction · 0.64
TestViewRunFunction · 0.64
TestListRunFunction · 0.64
Test_readFileRunFunction · 0.64
TestNewCmdGetFunction · 0.64