mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdAttributes: Code cleanup
This commit is contained in:
parent
396e923f22
commit
4a0c6995ed
1 changed files with 2 additions and 2 deletions
|
@ -55,11 +55,11 @@ CmdZshAttributes::CmdZshAttributes ()
|
||||||
int CmdZshAttributes::execute (std::string& output)
|
int CmdZshAttributes::execute (std::string& output)
|
||||||
{
|
{
|
||||||
// Get a list of all columns, sort them.
|
// Get a list of all columns, sort them.
|
||||||
std::vector <std::string> columns = context.getColumns ();
|
auto columns = context.getColumns ();
|
||||||
std::sort (columns.begin (), columns.end ());
|
std::sort (columns.begin (), columns.end ());
|
||||||
|
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
for (auto& col : columns)
|
for (const auto& col : columns)
|
||||||
out << col << ':' << col << '\n';
|
out << col << ':' << col << '\n';
|
||||||
|
|
||||||
output = out.str ();
|
output = out.str ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue