MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / getCommand

Method getCommand

src/CLI2.cpp:682–690  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

680
681////////////////////////////////////////////////////////////////////////////////
682std::string CLI2::getCommand(bool canonical) const {
683 // Shortcut if analysis has been finalized
684 if (_command != "") return _command;
685
686 for (const auto& a : _args)
687 if (a.hasTag("CMD")) return a.attribute(canonical ? "canonical" : "raw");
688
689 return "";
690}
691
692////////////////////////////////////////////////////////////////////////////////
693const std::string CLI2::dump(const std::string& title) const {

Callers 5

Hooks.cppFile · 0.80
initializeMethod · 0.80
dispatchMethod · 0.80
updateXtermTitleMethod · 0.80
updateVerbosityMethod · 0.80

Calls 2

attributeMethod · 0.80
hasTagMethod · 0.45

Tested by

no test coverage detected