Commands - done

- Migrated handleDone to CmdDone.
This commit is contained in:
Paul Beckingham 2011-05-30 13:53:57 -04:00
parent 75a24f5113
commit 908fbd8ca4
9 changed files with 201 additions and 117 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 == "done") { rc = handleDone (out); }
else if (cmd.command == "delete") { rc = handleDelete (out); }
if (cmd.command == "delete") { rc = handleDelete (out); }
else if (cmd.command == "merge") { tdb.gc ();
handleMerge (out); }
else if (cmd.command == "push") { handlePush (out); }