mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Commands
- Eliminated the Command::implements method. - Implemented CmdCustom to handle all custom reports. - Implemented CmdTags.
This commit is contained in:
parent
31e865e823
commit
bedc28f517
18 changed files with 575 additions and 129 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue