[root@localhost swoft]# swoftcli gen:controller -h
[ERROR] Command 'controller' is not exist in group: gen
Generate some common application template classes Group: gen (alias: generate)
Usage:
swoftcli gen:COMMAND [--opt ...] [arg ...] Global Options:
--debug Setting the application runtime debug level(0 - 4)
--no-color Disable color/ANSI for message output
-h, --help Display help message for application or command
-V, --version Display application version information Commands:
cli-command Generate CLI command controller class(alias: cmd, command)
crontab Generate user cronTab task class(alias: task-crontab, taskCrontab)
http-controller Generate HTTP controller class(alias: ctrl, http-ctrl)
http-middleware Generate HTTP middleware class(alias: http-mdl, httpmdl, http-middle)
listener Generate an event listener class(alias: event-listener)
process Generate user custom process class(alias: proc)
rpc-controller Generate RPC service class(alias: rpcctrl, service, rpc-ctrl)
rpc-middleware Generate RPC middleware class(alias: rpcmdl, rpc-mdl, rpc-middle)
task Generate user task class
tcp-controller Generate TCP controller class(alias: tcpc, tcpctrl, tcp-ctrl)
tcp-middleware Generate TCP middleware class(alias: tcpmdl, tcp-mdl, tcp-middle)
ws-controller Generate WebSocket message controller class(alias: wsc, wsctrl, ws-ctrl)
ws-middleware Generate WebSocket middleware class(alias: wsmdl, ws-mdl, ws-middle)
ws-module Generate WebSocket module class(alias: wsm, wsmod, ws-mod, wsModule) View the specified command, please use: swoftcli gen:COMMAND -h
[root@localhost swoft]# swoftcli gen:http-controller -h
Generate HTTP controller class Usage:
/usr/local/bin/swoftcli gen:http-controller [arguments ...] [options ...] Global Options:
--debug Setting the application runtime debug level(0 - 4)
--no-color Disable color/ANSI for message output
-h, --help Display help message for application or command
-V, --version Display application version information Arguments:
name VALUE The class name, don't need suffix and ext. eg: demo
dir VALUE The class file save dir (defaults: @app/Http/Controller) Options:
-n, --namespace VALUE The class namespace (defaults: App\Http\Controller)
--prefix STRING The route prefix for the controller, default is class name
--preview Want preview the will generated file code
--rest STRING The class will contains CURD actions (defaults: True)
--suffix STRING The class name suffix (defaults: Controller)
--tpl-dir STRING The template files directory
--tpl-file STRING The template file filename or full path (defaults: http-rest-controller.stub)
-y, --yes No need to confirm when performing file writing (defaults: False) Example:
/usr/local/bin/swoftcli gen:http-controller demo --prefix /demo -y Gen DemoController class to http controller dir
/usr/local/bin/swoftcli gen:http-controller user --prefix /users --rest Gen UserController class to http controller dir(RESTFul)
[root@localhost swoft]# swoftcli gen:http-controller member

  

最新文章

  1. Binary Agents
  2. python之前端
  3. MIT JOS学习笔记01:环境配置、Boot Loader(2016.10.22)
  4. Codeforces Round #285 (Div.1 B & Div.2 D) Misha and Permutations Summation --二分+树状数组
  5. 【leetcode】Reorder List (middle)
  6. 项目中用到的window.showModalDialog(来自网络)
  7. C语言接口的写法(以toyls命令为例)
  8. PHP apache2.2 mysql 的安装
  9. linq的一些用法总结
  10. 探究Android SQLite3多线程
  11. SecureCRT - 使用方法和技巧
  12. 编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
  13. iOS 日期时间控件
  14. mui开发app之js将base64转图片文件
  15. Java之多态
  16. jQuery的ajax学习
  17. xamarin forms常用的布局StackLayout详解
  18. 《前端之路》之 JavaScript原型及原型链详解
  19. python与java的内存机制不一样;java的方法会进入方法区直到对象消失 方法才会消失;python的方法是对象每次调用都会创建新的对象 内存地址都不i一样
  20. JavaScript 获得 坐标

热门文章

  1. 如何编写一个简单的Linux驱动(二)——设备操作集file_operations
  2. 用后台开发的逻辑理念学习VUE
  3. Docker介绍及常用操作演示(一)
  4. spring 之BeanPostProcessor&BeanFactoryPostProcessor
  5. Spring系列之新注解配置+Spring集成junit+注解注入
  6. Redis中LIST列表的相关命令
  7. 使用监听器来启动spring -------使用监听器初始化上下文参数
  8. Java8 新特性lambda表达式(一)初始
  9. 1.UiPath账密安全保存常见方法
  10. ARM架构下的Docker环境,OpenJDK官方没有8版本镜像,如何完美解决?