mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
CLI
- Implemented ::add.
This commit is contained in:
parent
acca1c66a3
commit
c79a09d0b8
2 changed files with 12 additions and 0 deletions
11
src/CLI.cpp
11
src/CLI.cpp
|
@ -78,6 +78,17 @@ void CLI::initialize (int argc, const char** argv)
|
||||||
extractOverrides ();
|
extractOverrides ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
void CLI::add (const std::string& arg)
|
||||||
|
{
|
||||||
|
_args.push_back (arg);
|
||||||
|
|
||||||
|
dump ("CLI::add");
|
||||||
|
extractOverrides ();
|
||||||
|
aliasExpansion ();
|
||||||
|
categorize ();
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void CLI::extractOverrides ()
|
void CLI::extractOverrides ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
void alias (const std::string&, const std::string&);
|
void alias (const std::string&, const std::string&);
|
||||||
void entity (const std::string&, const std::string&);
|
void entity (const std::string&, const std::string&);
|
||||||
void initialize (int, const char**);
|
void initialize (int, const char**);
|
||||||
|
void add (const std::string&);
|
||||||
void aliasExpansion ();
|
void aliasExpansion ();
|
||||||
void categorize ();
|
void categorize ();
|
||||||
bool exactMatch (const std::string&, const std::string&) const;
|
bool exactMatch (const std::string&, const std::string&) const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue