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

Method render

src/columns/ColUUID.cpp:55–65  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

53
54////////////////////////////////////////////////////////////////////////////////
55void ColumnUUID::render(std::vector<std::string>& lines, Task& task, int width, Color& color) {
56 // No need to check the presence of UUID - all tasks have one.
57
58 // f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default
59 // f30cb9c3 short
60 if (_style == "default" || _style == "long")
61 renderStringLeft(lines, width, color, task.get(_name));
62
63 else if (_style == "short")
64 renderStringLeft(lines, width, color, task.get(_name).substr(0, 8));
65}
66
67////////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected