mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
CLI
- Implemented ::isID.
This commit is contained in:
parent
fe2ea795ee
commit
28a2d667f1
2 changed files with 8 additions and 0 deletions
|
@ -485,6 +485,7 @@ void CLI::addArg (const std::string& arg)
|
||||||
isConfigOverride (arg) ||
|
isConfigOverride (arg) ||
|
||||||
isUUIDList (arg) ||
|
isUUIDList (arg) ||
|
||||||
isUUID (arg) ||
|
isUUID (arg) ||
|
||||||
|
isID (arg) ||
|
||||||
isPattern (arg) ||
|
isPattern (arg) ||
|
||||||
isSubstitution (arg))
|
isSubstitution (arg))
|
||||||
{
|
{
|
||||||
|
@ -1740,6 +1741,12 @@ bool CLI::isUUID (const std::string& raw) const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
bool CLI::isID (const std::string& raw) const
|
||||||
|
{
|
||||||
|
return digitsOnly (raw);
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
bool CLI::isPattern (const std::string& raw) const
|
bool CLI::isPattern (const std::string& raw) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -102,6 +102,7 @@ private:
|
||||||
bool isConfigOverride (const std::string&) const;
|
bool isConfigOverride (const std::string&) const;
|
||||||
bool isUUIDList (const std::string&) const;
|
bool isUUIDList (const std::string&) const;
|
||||||
bool isUUID (const std::string&) const;
|
bool isUUID (const std::string&) const;
|
||||||
|
bool isID (const std::string&) const;
|
||||||
bool isPattern (const std::string&) const;
|
bool isPattern (const std::string&) const;
|
||||||
bool isSubstitution (const std::string&) const;
|
bool isSubstitution (const std::string&) const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue