mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Argument Parsing
- Obsoleted Command::exectute 'commandLine' argument. It is worse than unnecessary, it is an uncategorized raw argument string, which is only really useful for the 'execute' command, which itself now calls Arguments::combine to reconstruct the command line string.
This commit is contained in:
parent
c2e1757fb6
commit
644d027a87
99 changed files with 397 additions and 289 deletions
|
@ -45,9 +45,12 @@ CmdConfig::CmdConfig ()
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdConfig::execute (const std::string&, std::string& output)
|
||||
int CmdConfig::execute (std::string& output)
|
||||
{
|
||||
int rc = 0;
|
||||
/*
|
||||
TODO Revise argument handling
|
||||
|
||||
std::stringstream out;
|
||||
|
||||
// Obtain the arguments from the description. That way, things like '--'
|
||||
|
@ -160,6 +163,7 @@ int CmdConfig::execute (const std::string&, std::string& output)
|
|||
}
|
||||
else
|
||||
throw std::string ("Specify the name of a config variable to modify.");
|
||||
*/
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
@ -176,7 +180,7 @@ CmdCompletionConfig::CmdCompletionConfig ()
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdCompletionConfig::execute (const std::string&, std::string& output)
|
||||
int CmdCompletionConfig::execute (std::string& output)
|
||||
{
|
||||
std::vector <std::string> configs;
|
||||
context.config.all (configs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue