///////////////////////////////////////////////////////////////////////////
| 162 | |
| 163 | //////////////////////////////////////////////////////////////////////////////// |
| 164 | bool ZshCommand::operator<(const struct ZshCommand& other) const { |
| 165 | // Lexicographical comparison. |
| 166 | if (_category != other._category) return (_category < other._category); |
| 167 | |
| 168 | if (_command != other._command) return (_command < other._command); |
| 169 | |
| 170 | if (_description != other._description) return (_description < other._description); |
| 171 | |
| 172 | return false; |
| 173 | } |
| 174 | |
| 175 | //////////////////////////////////////////////////////////////////////////////// |
| 176 | int CmdZshCommands::execute(std::string& output) { |
nothing calls this directly
no outgoing calls
no test coverage detected