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

Method CurrentTask

src/Context.cpp:1337–1340  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1335
1336////////////////////////////////////////////////////////////////////////////////
1337CurrentTask::CurrentTask(Context& context, const Task* task)
1338 : context{context}, previous{context.currentTask} {
1339 context.currentTask = task;
1340}
1341
1342////////////////////////////////////////////////////////////////////////////////
1343CurrentTask::~CurrentTask() { context.currentTask = previous; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected