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

Method scripts

src/Hooks.cpp:326–336  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

324
325////////////////////////////////////////////////////////////////////////////////
326std::vector<std::string> Hooks::scripts(const std::string& event) const {
327 std::vector<std::string> matching;
328 for (const auto& i : _scripts) {
329 if (i.find("/" + event) != std::string::npos) {
330 File script(i);
331 if (script.executable()) matching.push_back(i);
332 }
333 }
334
335 return matching;
336}
337
338////////////////////////////////////////////////////////////////////////////////
339void Hooks::separateOutput(const std::vector<std::string>& output, std::vector<std::string>& json,

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected