mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Code Cleanup
- Eliminated obsolete Arguments.h, Arguments.cpp.
This commit is contained in:
parent
ab8a6d9e88
commit
0c08b29e48
24 changed files with 74 additions and 1976 deletions
|
@ -48,12 +48,12 @@ CmdExec::CmdExec ()
|
|||
int CmdExec::execute (std::string& output)
|
||||
{
|
||||
std::string command_line;
|
||||
std::vector <Triple>::iterator arg;
|
||||
for (arg = context.args.begin (); arg != context.args.end (); ++arg)
|
||||
std::vector <Arg>::iterator arg;
|
||||
for (arg = context.a3.begin (); arg != context.a3.end (); ++arg)
|
||||
{
|
||||
if (arg != context.args.begin () &&
|
||||
arg->_first != "execute")
|
||||
command_line += arg->_first;
|
||||
if (arg != context.a3.begin () &&
|
||||
arg->_raw != "execute")
|
||||
command_line += arg->_raw;
|
||||
}
|
||||
|
||||
return system (command_line.c_str ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue