MCPcopy Create free account
hub / github.com/driangle/taskmd / taskToReportJSON

Function taskToReportJSON

apps/cli/internal/cli/report.go:122–134  ·  view source on GitHub ↗
(t reportTask)

Source from the content-addressed store, hash-verified

120}
121
122func taskToReportJSON(t reportTask) ReportTaskJSON {
123 var deps []string
124 if len(t.Dependencies) > 0 {
125 deps = t.Dependencies
126 }
127 return ReportTaskJSON{
128 ID: t.ID,
129 Title: t.Title,
130 Status: t.Status,
131 Priority: t.Priority,
132 Dependencies: deps,
133 }
134}
135
136func outputReportJSON(data *reportData, outFile *os.File) error {
137 type reportJSON struct {

Callers 1

outputReportJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected