mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context: Eliminated 'readcmd' and 'writcmd' entities
This commit is contained in:
parent
018592abac
commit
54fecafcec
2 changed files with 3 additions and 9 deletions
|
@ -148,23 +148,17 @@ int Context::initialize (int argc, const char** argv)
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// [3] Instantiate Command objects and capture entities.
|
// [3] Instantiate Command objects and capture command entities.
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
Command::factory (commands);
|
Command::factory (commands);
|
||||||
for (auto& cmd : commands)
|
for (auto& cmd : commands)
|
||||||
{
|
|
||||||
cli2.entity ("cmd", cmd.first);
|
cli2.entity ("cmd", cmd.first);
|
||||||
cli2.entity ((cmd.second->read_only () ? "readcmd" : "writecmd"), cmd.first);
|
|
||||||
|
|
||||||
if (cmd.first[0] == '_')
|
|
||||||
cli2.entity ("helper", cmd.first);
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// [4] Instantiate Column objects and capture entities.
|
// [4] Instantiate Column objects and capture column entities.
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
|
@ -278,7 +278,7 @@ bool Filter::pendingOnly ()
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Disaster avoidance mechanism. If a WRITECMD has no filter, then it can cause
|
// Disaster avoidance mechanism. If a !READONLY has no filter, then it can cause
|
||||||
// all tasks to be modified. This is usually not intended.
|
// all tasks to be modified. This is usually not intended.
|
||||||
void Filter::safety ()
|
void Filter::safety ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue