mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 15:47:19 +02:00
Integration - mod
- Now handles blank modifiers. Like it should.
This commit is contained in:
parent
25d27bec93
commit
a04bfc468b
2 changed files with 86 additions and 44 deletions
|
@ -383,6 +383,7 @@ std::cout << "[1;31m# parse tag removal '" << *arg << "'[0m" << std::endl;
|
|||
tagRemovals.push_back (arg->substr (1, std::string::npos));
|
||||
}
|
||||
|
||||
// Atributes - name[.mod]:[value]
|
||||
else if (attribute.valid (*arg))
|
||||
{
|
||||
std::cout << "[1;31m# parse attribute '" << *arg << "'[0m" << std::endl;
|
||||
|
@ -390,6 +391,16 @@ std::cout << "[1;31m# parse attribute '" << *arg << "'[0m" << std::endl;
|
|||
foundSomethingAfterSequence = true;
|
||||
|
||||
attribute.parse (*arg);
|
||||
|
||||
// There has to be a better way. And it starts with a fresh coffee.
|
||||
std::string name = attribute.name ();
|
||||
std::string mod = attribute.mod ();
|
||||
std::string value = attribute.value ();
|
||||
attribute.validNameValue (name, mod, value);
|
||||
attribute.name (name);
|
||||
attribute.mod (mod);
|
||||
attribute.value (value);
|
||||
|
||||
task[attribute.name ()] = attribute;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue