Refactoring
- Obsoleted Cmd object. - Removed Context::dispatch, renamed dispatch2 --> dispatch. - Commented out import and custom report functionality that depends on Cmd. This should be about as broken as taskwarrior gets. It's all uphill from here.
This commit is contained in:
@@ -349,12 +349,13 @@ bool Att::validNameValue (
|
||||
|
||||
// Some attributes are intended to be private, unless the command is read-
|
||||
// only, in which cased these are perfectly valid elements of a filter.
|
||||
/*
|
||||
if (context.cmd.isWriteCommand () &&
|
||||
!validModifiableName (name))
|
||||
throw std::string ("\"") +
|
||||
name +
|
||||
"\" is not an attribute you may modify directly.";
|
||||
|
||||
*/
|
||||
else if (name == "priority")
|
||||
{
|
||||
if (value != "")
|
||||
@@ -371,7 +372,7 @@ bool Att::validNameValue (
|
||||
|
||||
else if (name == "description")
|
||||
{
|
||||
if (context.cmd.isWriteCommand ())
|
||||
// if (context.cmd.isWriteCommand ())
|
||||
{
|
||||
if (value == "")
|
||||
throw std::string ("The '") + name + "' attribute must not be blank.";
|
||||
|
||||
Reference in New Issue
Block a user