mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Expressions/Arguments
- Converted the arguments parsed from a pair (token/modified-category) to a triple (token/type/category)
This commit is contained in:
parent
e1aea08f81
commit
42becb9e41
6 changed files with 327 additions and 278 deletions
|
@ -48,12 +48,12 @@ CmdExec::CmdExec ()
|
|||
int CmdExec::execute (std::string& output)
|
||||
{
|
||||
std::string command_line;
|
||||
std::vector <std::pair <std::string, std::string> >::iterator arg;
|
||||
std::vector <Triple>::iterator arg;
|
||||
for (arg = context.args.begin (); arg != context.args.end (); ++arg)
|
||||
{
|
||||
if (arg != context.args.begin () &&
|
||||
arg->first != "execute")
|
||||
command_line += arg->first;
|
||||
arg->_first != "execute")
|
||||
command_line += arg->_first;
|
||||
}
|
||||
|
||||
return system (command_line.c_str ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue