From 34eaad54dfa8b2499a955aa64b057b0ebaf56461 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 6 May 2017 22:41:27 +0430 Subject: added a help structure along with minor additions/changes --- bruiser/bruiser.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/bruiser/bruiser.h b/bruiser/bruiser.h index 7d32da9..cdb5141 100644 --- a/bruiser/bruiser.h +++ b/bruiser/bruiser.h @@ -72,6 +72,27 @@ namespace bruiser enum class M0_ERR {M0_ERROR_CODES}; #undef X /**********************************************************************************************************************/ +struct help +{ + std::string name; + std::string proto; + std::string descr; + std::string protoprefix; + std::string retval; +}; + +help CMDHelp[] ={ + {"help", "", "display general help", "", ""}, + {"quit", "", "quit bruiser", "", ""}, + {"exit", "", "quit bruiser", "", ""}, + {"m0", "", "bruiser reads the report generated by mutator-lvl0", "", ""}, + {"hijack", "hijack main", "runs a specific matcher that replaces the main with a new main", "", ""}, + {"clear", "", "clears the terminal", "", ""}, + {"shell", "", "opens up a bash shell inside bruiser", "", ""}, + {"history", "", "prints bruiser's history", "", ""}, + {"!", "", "prints the command from history", "", ""} +}; +/**********************************************************************************************************************/ /** * @brief This class handles the logging for bruiser. */ @@ -169,7 +190,11 @@ class SearchM0 void Debug(void) { + if (!RootPointer->NoChildren()) + { + const XMLElement* XMLE [[maybe_unused]] = RootPointer->FirstChildElement(); + } } private: -- cgit v1.2.3