mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement - Integration
- Integrated Cmd object. - Enhanced Context object with dispatch and shadow methods. - Fixed bug in Context::parse. - Implemented command parsing. - Fixed Sequence bug, and unit tests.
This commit is contained in:
parent
190c6b53fc
commit
d702ba8f24
7 changed files with 128 additions and 35 deletions
|
@ -68,6 +68,12 @@ bool Sequence::valid (const std::string& input) const
|
|||
if (range.size () < 1 ||
|
||||
range.size () > 2)
|
||||
return false;
|
||||
|
||||
if (range.size () == 1 && !validId (range[0]))
|
||||
return false;
|
||||
|
||||
if (range.size () == 2 && !validId (range[1]))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue