MCPcopy Create free account
hub / github.com/cli/cli / ExportData

Method ExportData

pkg/cmdutil/json_flags_test.go:396–402  ·  view source on GitHub ↗
(fields []string)

Source from the content-addressed store, hash-verified

394}
395
396func (e *exportableItem) ExportData(fields []string) map[string]any {
397 m := map[string]any{}
398 for _, f := range fields {
399 m[f] = fmt.Sprintf("%s:%s", e.Name, f)
400 }
401 return m
402}
403
404func TestStructExportData(t *testing.T) {
405 tf, _ := time.Parse(time.RFC3339, "2024-01-01T00:00:00Z")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected