mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI2: Added ::getCommandRaw
- Used when the canonicalized form is not wanted - just the raw.
This commit is contained in:
parent
e36d358115
commit
ba63472068
2 changed files with 11 additions and 0 deletions
10
src/CLI2.cpp
10
src/CLI2.cpp
|
@ -762,6 +762,16 @@ std::string CLI2::getCommand () const
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
std::string CLI2::getCommandRaw () const
|
||||||
|
{
|
||||||
|
for (auto& a : _args)
|
||||||
|
if (a.hasTag ("CMD"))
|
||||||
|
return a.attribute ("raw");
|
||||||
|
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::string CLI2::getLimit () const
|
std::string CLI2::getLimit () const
|
||||||
|
|
|
@ -98,6 +98,7 @@ public:
|
||||||
bool canonicalize (std::string&, const std::string&, const std::string&) const;
|
bool canonicalize (std::string&, const std::string&, const std::string&) const;
|
||||||
std::string getBinary () const;
|
std::string getBinary () const;
|
||||||
std::string getCommand () const;
|
std::string getCommand () const;
|
||||||
|
std::string getCommandRaw () const;
|
||||||
/*
|
/*
|
||||||
std::string getLimit () const;
|
std::string getLimit () const;
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue