Add 'create filter' sub-command in drogon_ctl
This commit is contained in:
parent
1433fc0509
commit
183a31831f
|
@ -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})
|
||||||
|
|
|
@ -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> ¶meters)
|
void create::handleCommand(std::vector<std::string> ¶meters)
|
||||||
|
|
Loading…
Reference in New Issue