MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / operator<

Method operator<

src/commands/CmdCommands.cpp:164–173  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

162
163////////////////////////////////////////////////////////////////////////////////
164bool 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////////////////////////////////////////////////////////////////////////////////
176int CmdZshCommands::execute(std::string& output) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected