mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 13:23:08 +02:00
CLI
- Implemented ::getWords.
This commit is contained in:
parent
9d5299e843
commit
4861c1ef1b
1 changed files with 16 additions and 1 deletions
17
src/CLI.cpp
17
src/CLI.cpp
|
@ -363,8 +363,23 @@ const std::vector <std::string> CLI::getWords ()
|
||||||
{
|
{
|
||||||
std::vector <std::string> words;
|
std::vector <std::string> words;
|
||||||
|
|
||||||
// TODO Processing here.
|
std::vector <A>::const_iterator a;
|
||||||
|
for (a = _args.begin (); a != _args.end (); ++a)
|
||||||
|
{
|
||||||
|
if (! a->hasTag ("BINARY") &&
|
||||||
|
! a->hasTag ("RC") &&
|
||||||
|
! a->hasTag ("CONFIG") &&
|
||||||
|
! a->hasTag ("CMD") &&
|
||||||
|
! a->hasTag ("TERMINATOR") &&
|
||||||
|
a->hasTag ("ORIGINAL"))
|
||||||
|
{
|
||||||
|
words.push_back (a->attribute ("raw"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string all;
|
||||||
|
join (all, " ", words);
|
||||||
|
std::cout << "# CLI::getWords " << all << "\n";
|
||||||
return words;
|
return words;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue