aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-13 18:12:17 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-13 18:47:30 +0100
commit35d1269faca070e1ec8906d0683896f937685b97 (patch)
tree8e6f66431625c82af5a4cbfed6ea50c6a1bded36 /src/daemon/command_server.cpp
parentMerge pull request #3618 (diff)
downloadmonero-35d1269faca070e1ec8906d0683896f937685b97.tar.xz
daemon: add a version command
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r--src/daemon/command_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index a50dbea69..144603597 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -280,6 +280,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::sync_info, &m_parser, p::_1)
, "Print information about the blockchain sync state."
);
+ m_command_lookup.set_handler(
+ "version"
+ , std::bind(&t_command_parser_executor::version, &m_parser, p::_1)
+ , "Print version information."
+ );
}
bool t_command_server::process_command_str(const std::string& cmd)