/** * * @file * @author An Tao * @section LICENSE * * Copyright 2018, An Tao. All rights reserved. * Use of this source code is governed by a MIT license * that can be found in the License file. * * @section DESCRIPTION * */ #include "cmd.h" #include "CommandHandler.h" #include #include using namespace drogon; void exeCommand(std::vector& parameters) { if(parameters.empty()) { std::cout<<"incomplete command!use help command to get usage!"<(drogon::DrClassMap::newObject(handlerName)); if(obj) { auto ctl=std::dynamic_pointer_cast(obj); if(ctl) { ctl->handleCommand(parameters); } else { std::cout<<"command not found!use help command to get usage!"<