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

Function dependencyChainOnStart

src/dependency.cpp:157–170  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

155
156////////////////////////////////////////////////////////////////////////////////
157void dependencyChainOnStart(Task& task) {
158 if (Context::getContext().config.getBoolean("dependency.reminder")) {
159 auto blocking = task.getDependencyTasks();
160
161 // If the task is anything but the tail end of a dependency chain, nag about
162 // broken chain.
163 if (blocking.size()) {
164 std::cout << format(STRING_DEPEND_BLOCKED, task.identifier()) << '\n';
165
166 for (const auto& b : blocking)
167 std::cout << " " << b.id << ' ' << b.get("description") << '\n';
168 }
169 }
170}
171
172////////////////////////////////////////////////////////////////////////////////

Callers 2

executeMethod · 0.85
executeMethod · 0.85

Calls 3

getDependencyTasksMethod · 0.80
identifierMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected