/** * * @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 "help.h" #include #include #include using namespace drogon_ctl; void help::handleCommand(std::vector ¶meters) { if(parameters.size()==0) { std::cout<<"usage: drogon_ctl []"<(drogon::DrClassMap::newObject(className)); if(classPtr) { auto cmdHdlPtr=std::dynamic_pointer_cast(classPtr); if(cmdHdlPtr) { if(!cmdHdlPtr->isTopCommand()) continue; auto pos=className.rfind("::"); if(pos!=std::string::npos) { className=className.substr(pos+2); } while(className.length()<24) className.append(" "); std::cout<script()<(drogon::DrClassMap::newObject(cmd)); if(classPtr) { auto cmdHdlPtr=std::dynamic_pointer_cast(classPtr); if(cmdHdlPtr) { if(cmdHdlPtr->isTopCommand()) std::cout<detail()<