mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement - _config
- Merged Fredde's _config command with prior bug fix.
This commit is contained in:
parent
e2da1d0a9a
commit
8bf0f1176b
4 changed files with 18 additions and 0 deletions
|
@ -330,6 +330,20 @@ std::string handleCompletionCommands ()
|
|||
return out.str ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string handleCompletionConfig ()
|
||||
{
|
||||
std::vector <std::string> configs;
|
||||
context.config.all (configs);
|
||||
std::sort (configs.begin (), configs.end ());
|
||||
|
||||
std::stringstream out;
|
||||
foreach (config, configs)
|
||||
out << *config << std::endl;
|
||||
|
||||
return out.str ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string handleCompletionIDs ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue