Commands
- Eliminated the Command::implements method. - Implemented CmdCustom to handle all custom reports. - Implemented CmdTags.
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user