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

Function buildUpdateRequest

apps/cli/internal/mcp/set.go:106–128  ·  view source on GitHub ↗
(input SetInput)

Source from the content-addressed store, hash-verified

104}
105
106func buildUpdateRequest(input SetInput) taskfile.UpdateRequest {
107 var req taskfile.UpdateRequest
108 if input.Status != "" {
109 req.Status = &input.Status
110 }
111 if input.Priority != "" {
112 req.Priority = &input.Priority
113 }
114 if input.Effort != "" {
115 req.Effort = &input.Effort
116 }
117 if input.Owner != "" {
118 req.Owner = &input.Owner
119 }
120 if input.Tags != nil {
121 req.Tags = &input.Tags
122 }
123 req.AddTags = input.AddTags
124 req.RemTags = input.RemTags
125 req.AddPRs = input.AddPRs
126 req.RemPRs = input.RemPRs
127 return req
128}
129
130func isEmptyRequest(req taskfile.UpdateRequest) bool {
131 return req.Status == nil &&

Callers 1

handleSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected