mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
CLI
- Implemented ::insert.
This commit is contained in:
parent
f4147f2ea3
commit
5685bf95a6
2 changed files with 13 additions and 0 deletions
12
src/CLI.cpp
12
src/CLI.cpp
|
@ -279,6 +279,18 @@ void CLI::add (const std::string& arg)
|
||||||
analyze ();
|
analyze ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Capture a single argument, after BINARY.
|
||||||
|
void CLI::insert (const std::string& arg)
|
||||||
|
{
|
||||||
|
// Clean the ID/UUID lists, because they will be rebuilt.
|
||||||
|
_id_ranges.clear ();
|
||||||
|
_uuid_list.clear ();
|
||||||
|
|
||||||
|
addArg (arg, true);
|
||||||
|
analyze ();
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Intended to be called after ::initialize() and ::add(), to perform the final
|
// Intended to be called after ::initialize() and ::add(), to perform the final
|
||||||
// analysis. Analysis is also performed directly after the above, because there
|
// analysis. Analysis is also performed directly after the above, because there
|
||||||
|
|
|
@ -70,6 +70,7 @@ public:
|
||||||
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 add (const std::string&);
|
||||||
|
void insert (const std::string&);
|
||||||
void analyze (bool parse = true);
|
void analyze (bool parse = true);
|
||||||
void applyOverrides ();
|
void applyOverrides ();
|
||||||
void getOverride (std::string&, File&);
|
void getOverride (std::string&, File&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue