Add 'create filter' sub-command in drogon_ctl

This commit is contained in:
antao 2018-10-20 17:35:52 +08:00
parent 1433fc0509
commit 183a31831f
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ link_libraries(ssl crypto)
endif() endif()
AUX_SOURCE_DIRECTORY(. SRC_DIR) AUX_SOURCE_DIRECTORY(. SRC_DIR)
add_executable(_drogon_ctl ${SRC_DIR}) add_executable(_drogon_ctl main.cc cmd.cc create.cc create_view.cc)
FILE(GLOB SCP_LIST ${CMAKE_CURRENT_SOURCE_DIR}/templates/*.csp) FILE(GLOB SCP_LIST ${CMAKE_CURRENT_SOURCE_DIR}/templates/*.csp)
foreach(cspFile ${SCP_LIST}) foreach(cspFile ${SCP_LIST})
message(STATUS "cspFile:" ${cspFile}) message(STATUS "cspFile:" ${cspFile})

View File

@ -30,7 +30,9 @@ std::string create::detail()
"drogon_ctl create controller -w [-n <namespace>] <class_name> //" "drogon_ctl create controller -w [-n <namespace>] <class_name> //"
"create WebSocketController source files\n" "create WebSocketController source files\n"
"drogon_ctl create project <project_name> //" "drogon_ctl create project <project_name> //"
"create a project named project_name\n"; "create a project named project_name\n"
"drogon_ctl create filter <class_name> //"
"create a filter named class_name\n";
} }
void create::handleCommand(std::vector<std::string> &parameters) void create::handleCommand(std::vector<std::string> &parameters)