Commands - info

- Migrated 'info' command to CmdInfo.
- Renamed 'info' command to 'information'.
This commit is contained in:
Paul Beckingham 2011-05-28 12:55:45 -04:00
parent 306f10b420
commit 0ce198ab8c
10 changed files with 451 additions and 363 deletions

View file

@ -230,6 +230,9 @@ int Context::dispatch2 (std::string &out)
return c->execute (commandLine, out);
}
// TODO Need to invoke 'information' when a sequence/filter is present, but
// no command is specified.
// TODO When ::dispatch is eliminated, show usage on unrecognized command.
// commands["help"]->execute (commandLine, out);
@ -248,7 +251,6 @@ int Context::dispatch (std::string &out)
else if (cmd.command == "colors") { rc = handleColor (out); }
else if (cmd.command == "config") { rc = handleConfig (out); }
else if (cmd.command == "stats") { rc = handleReportStats (out); }
else if (cmd.command == "info") { rc = handleInfo (out); }
else if (cmd.command == "history.monthly") { rc = handleReportHistoryMonthly (out); }
else if (cmd.command == "history.annual") { rc = handleReportHistoryAnnual (out); }
else if (cmd.command == "ghistory.monthly") { rc = handleReportGHistoryMonthly (out); }