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

Method execute

src/commands/CmdAttributes.cpp:54–64  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

52
53////////////////////////////////////////////////////////////////////////////////
54int CmdZshAttributes::execute(std::string& output) {
55 // Get a list of all columns, sort them.
56 auto columns = Context::getContext().getColumns();
57 std::sort(columns.begin(), columns.end());
58
59 std::stringstream out;
60 for (const auto& col : columns) out << col << ':' << col << '\n';
61
62 output = out.str();
63 return 0;
64}
65
66////////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

getColumnsMethod · 0.80

Tested by

no test coverage detected