aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-08-23 22:32:18 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-08-23 22:32:18 +0200
commit3b260869b230e20bf701849477f95030b108832c (patch)
tree580108a7ddb05fd8c4d8f7881e8547e475851d27 /src
parentadc4c7ac5f46f06114532c2da1fa292de732564c (diff)
downloadn_core-3b260869b230e20bf701849477f95030b108832c.tar.gz
n_core-3b260869b230e20bf701849477f95030b108832c.zip
added new annotation , so the bridges know when to format in platform specific command.. format. see readme for more info.
also removed [[maybe_unused]] again, because clang (not tidy!) said it is going to ignore it anyway
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a61a3dd..a86c589 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,7 +19,7 @@ struct CommandHandler {
}
handler_function func{nullptr};
- [[maybe_unused]] std::string description;
+ std::string description;
void *payload{nullptr};
};
@@ -124,8 +124,7 @@ json helpHandler(std::string const &arguments, std::string const &session, void
for (auto const &itor : commands) {
std::vector<json> commandAnnotations;
- commandAnnotations.push_back(std::move(create_annotation(Reply::AnnotationType::italics)));
- commandAnnotations.push_back(std::move(create_annotation(Reply::AnnotationType::underline)));
+ commandAnnotations.push_back(std::move(create_annotation(Reply::AnnotationType::command)));
reply_vec.push_back(std::move(create_text("- ")));
reply_vec.push_back(std::move(create_text(itor.first, std::move(commandAnnotations))));