mirror of
https://github.com/monero-project/monero.git
synced 2025-12-16 08:03:58 -05:00
daemon: add a version command
This commit is contained in:
parent
1f96755ddc
commit
35d1269fac
3 changed files with 14 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "common/dns_utils.h"
|
||||
#include "version.h"
|
||||
#include "daemon/command_parser_executor.h"
|
||||
|
||||
#undef MONERO_DEFAULT_LOG_CATEGORY
|
||||
|
|
@ -664,4 +665,10 @@ bool t_command_parser_executor::sync_info(const std::vector<std::string>& args)
|
|||
return m_executor.sync_info();
|
||||
}
|
||||
|
||||
bool t_command_parser_executor::version(const std::vector<std::string>& args)
|
||||
{
|
||||
std::cout << "Monero '" << MONERO_RELEASE_NAME << "' (v" << MONERO_VERSION_FULL << ")" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace daemonize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue