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

Function resolveTaskContent

apps/cli/internal/cli/add.go:178–183  ·  view source on GitHub ↗
(cmd *cobra.Command, id, title string)

Source from the content-addressed store, hash-verified

176}
177
178func resolveTaskContent(cmd *cobra.Command, id, title string) (string, error) {
179 if addTemplate != "" {
180 return buildFromTemplate(cmd, id, title)
181 }
182 return buildTaskFileContent(id, title), nil
183}
184
185// buildFromTemplate resolves a template, renders it with variables, and applies CLI flag overrides.
186func buildFromTemplate(cmd *cobra.Command, id, title string) (string, error) {

Callers 1

runAddFunction · 0.85

Calls 2

buildFromTemplateFunction · 0.85
buildTaskFileContentFunction · 0.85

Tested by

no test coverage detected