MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / statusToText

Method statusToText

src/Task.cpp:172–185  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

170
171////////////////////////////////////////////////////////////////////////////////
172std::string Task::statusToText(Task::status s) {
173 if (s == Task::pending)
174 return "pending";
175 else if (s == Task::recurring)
176 return "recurring";
177 else if (s == Task::waiting)
178 return "waiting";
179 else if (s == Task::completed)
180 return "completed";
181 else if (s == Task::deleted)
182 return "deleted";
183
184 return "pending";
185}
186
187////////////////////////////////////////////////////////////////////////////////
188// Returns a proper handle to the task. Tasks should not be referenced by UUIDs

Callers 1

getDOMFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected