mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 07:57:20 +02:00
CLI2: Added ::canonicalize
This commit is contained in:
parent
addcbe15d5
commit
ad69f84794
2 changed files with 5 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
||||||
#include <CLI2.h>
|
#include <CLI2.h>
|
||||||
#include <Color.h>
|
#include <Color.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
//#include <util.h>
|
#include <util.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
|
|
||||||
extern Context context;
|
extern Context context;
|
||||||
|
@ -658,6 +658,7 @@ const std::vector <std::string> CLI2::getWords ()
|
||||||
|
|
||||||
return words;
|
return words;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Search for 'value' in _entities category, return canonicalized value.
|
// Search for 'value' in _entities category, return canonicalized value.
|
||||||
|
@ -692,6 +693,7 @@ bool CLI2::canonicalize (
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::string CLI2::getBinary () const
|
std::string CLI2::getBinary () const
|
||||||
{
|
{
|
||||||
|
|
|
@ -97,7 +97,9 @@ public:
|
||||||
void applyOverrides ();
|
void applyOverrides ();
|
||||||
const std::string getFilter (bool applyContext = true);
|
const std::string getFilter (bool applyContext = true);
|
||||||
const std::vector <std::string> getWords ();
|
const std::vector <std::string> getWords ();
|
||||||
|
*/
|
||||||
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 getLimit () const;
|
std::string getLimit () const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue