- Eliminated the Command::implements method.
- Implemented CmdCustom to handle all custom reports.
- Implemented CmdTags.
This commit is contained in:
Paul Beckingham 2011-05-24 19:25:33 -04:00
parent 31e865e823
commit bedc28f517
18 changed files with 575 additions and 129 deletions

View file

@ -41,16 +41,6 @@ CmdLogo::CmdLogo ()
_displays_id = false;
}
////////////////////////////////////////////////////////////////////////////////
bool CmdLogo::implements (const std::string& command_line)
{
// TODO Upgrade to a parsed value.
if (command_line.find ("_logo") != std::string::npos)
return true;
return false;
}
////////////////////////////////////////////////////////////////////////////////
// Algorithm:
// Copy file rc.data.location/extensions
@ -93,7 +83,7 @@ int CmdLogo::execute (const std::string& commandLine, std::string& output)
};
if (!context.color ())
throw std::string ("The _logo command requires that color support is enabled.");
throw std::string ("The logo command requires that color support is enabled.");
std::string indent (context.config.getInteger ("indent.report"), ' ');
output += optionalBlankLine ();