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

Function toUpdateRequest

apps/cli/internal/web/handlers.go:446–458  ·  view source on GitHub ↗
(body TaskUpdateRequest)

Source from the content-addressed store, hash-verified

444}
445
446func toUpdateRequest(body TaskUpdateRequest) taskfile.UpdateRequest {
447 return taskfile.UpdateRequest{
448 Title: body.Title,
449 Status: body.Status,
450 Priority: body.Priority,
451 Effort: body.Effort,
452 Type: body.Type,
453 Owner: body.Owner,
454 Parent: body.Parent,
455 Tags: body.Tags,
456 Body: body.Body,
457 }
458}
459
460func handleFileUpdateError(w http.ResponseWriter, err error) {
461 if strings.Contains(err.Error(), "no valid frontmatter") {

Callers 1

handleUpdateTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected