mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
UDAs - User Defined Attributes
- Added support for named allowable values.
This commit is contained in:
parent
0d3f6f990d
commit
7f1d8c3682
5 changed files with 34 additions and 2 deletions
|
@ -596,7 +596,12 @@ void Command::modify_task (
|
|||
|
||||
// By default, just add/remove it.
|
||||
else
|
||||
task.set (name, value);
|
||||
{
|
||||
if (column->validate (value))
|
||||
task.set (name, value);
|
||||
else
|
||||
throw format (STRING_INVALID_MOD, name, value);
|
||||
}
|
||||
|
||||
// Warn about deprecated/obsolete attribute usage.
|
||||
legacyAttributeCheck (name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue