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);
|
||||
for (auto& cmd : commands)
|
||||
{
|
||||
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.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue