///////////////////////////////////////////////////////////////////////////
| 52 | |
| 53 | //////////////////////////////////////////////////////////////////////////////// |
| 54 | int CmdZshAttributes::execute(std::string& output) { |
| 55 | // Get a list of all columns, sort them. |
| 56 | auto columns = Context::getContext().getColumns(); |
| 57 | std::sort(columns.begin(), columns.end()); |
| 58 | |
| 59 | std::stringstream out; |
| 60 | for (const auto& col : columns) out << col << ':' << col << '\n'; |
| 61 | |
| 62 | output = out.str(); |
| 63 | return 0; |
| 64 | } |
| 65 | |
| 66 | //////////////////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected