CLI: Add 'version' command
这个提交包含在:
6
cli.cpp
6
cli.cpp
@@ -8,6 +8,7 @@
|
||||
#include "authenticator.h"
|
||||
#include "config.h"
|
||||
#include "logger.h"
|
||||
#include "version.h"
|
||||
|
||||
CLIHandler::CLIHandler(Config &config, Database &db)
|
||||
{
|
||||
@@ -218,3 +219,8 @@ std::pair<std::string, std::vector<std::string>> CLIHandler::splitCommand(std::s
|
||||
splitted.erase(splitted.begin());
|
||||
return {cmd, splitted};
|
||||
}
|
||||
|
||||
std::pair<bool, std::string> CLIHandler::version(const std::vector<std::string> &args)
|
||||
{
|
||||
return {true, get_version_string()};
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户