///////////////////////////////////////////////////////////////////////////
| 155 | |
| 156 | //////////////////////////////////////////////////////////////////////////////// |
| 157 | void 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 | //////////////////////////////////////////////////////////////////////////////// |
no test coverage detected