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

Method separateOutput

src/Hooks.cpp:339–347  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

337
338////////////////////////////////////////////////////////////////////////////////
339void Hooks::separateOutput(const std::vector<std::string>& output, std::vector<std::string>& json,
340 std::vector<std::string>& feedback) const {
341 for (auto& i : output) {
342 if (isJSON(i))
343 json.push_back(i);
344 else
345 feedback.push_back(i);
346 }
347}
348
349////////////////////////////////////////////////////////////////////////////////
350bool Hooks::isJSON(const std::string& input) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected