mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Config: Migrated to libshared Configuration
This commit is contained in:
parent
a31434fd48
commit
dd4fef6794
9 changed files with 19 additions and 125 deletions
|
@ -253,7 +253,7 @@ int CmdShow::execute (std::string& output)
|
|||
|
||||
// Find all the values that match the defaults, for highlighting.
|
||||
std::vector <std::string> default_values;
|
||||
Config default_config;
|
||||
Configuration default_config;
|
||||
default_config.parse (configurationDefaults);
|
||||
|
||||
for (auto& i : context.config)
|
||||
|
@ -411,11 +411,8 @@ CmdShowRaw::CmdShowRaw ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdShowRaw::execute (std::string& output)
|
||||
{
|
||||
// Get all the settings.
|
||||
std::vector <std::string> all;
|
||||
context.config.all (all);
|
||||
|
||||
// Sort alphabetically by name.
|
||||
// Get all the settings and sort alphabetically by name.
|
||||
auto all = context.config.all ();
|
||||
std::sort (all.begin (), all.end ());
|
||||
|
||||
// Display them all.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue