mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
taskshell
- Add external calls from taskshell
This commit is contained in:
parent
6ecb984f84
commit
36d49cb004
1 changed files with 13 additions and 0 deletions
|
@ -183,6 +183,19 @@ int main (int argc, const char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
// External calls.
|
||||
if (strcmp (w[1], "xc") == 0 && p.we_wordc > 2)
|
||||
{
|
||||
std::string combined = "";
|
||||
for (int i = 2; i < p.we_wordc - 1 ; ++i)
|
||||
{
|
||||
combined += std::string (w[i]) + " ";
|
||||
}
|
||||
combined += w[p.we_wordc - 1]; // last goes without a blank
|
||||
system (combined.c_str ()); // not checked
|
||||
continue;
|
||||
}
|
||||
|
||||
int status = context.initialize (p.we_wordc, (const char**)p.we_wordv);
|
||||
wordfree(&p);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue