mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
CLI2: Added polymorphic ::attribute
This commit is contained in:
parent
7c604cdb8f
commit
b4b15c7f45
2 changed files with 8 additions and 0 deletions
|
@ -126,6 +126,13 @@ void A2::attribute (const std::string& name, const std::string& value)
|
|||
_attributes[name] = value;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Accessor for attributes.
|
||||
void A2::attribute (const std::string& name, const int value)
|
||||
{
|
||||
_attributes[name] = format (value);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Accessor for attributes.
|
||||
const std::string A2::attribute (const std::string& name) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue