Commands - delete

- Migrated handleDelete to CmdDelete.
This commit is contained in:
Paul Beckingham 2011-05-30 14:00:34 -04:00
parent 908fbd8ca4
commit abd51e81a3
9 changed files with 236 additions and 150 deletions

View file

@ -249,8 +249,7 @@ int Context::dispatch (std::string &out)
Timer t ("Context::dispatch");
// TODO Chain-of-command pattern dispatch.
if (cmd.command == "delete") { rc = handleDelete (out); }
else if (cmd.command == "merge") { tdb.gc ();
if (cmd.command == "merge") { tdb.gc ();
handleMerge (out); }
else if (cmd.command == "push") { handlePush (out); }
else if (cmd.command == "pull") { handlePull (out); }