yii2giiyii2-giiant

How to disable generating controllers and views with CLI batch command for Giiant?


I am using the command line for generating models with giiant, like this:

yii batch

What do I put into the application configuration or command line options to disable generating views and controllers?

I tried looking at the source of BatchController to see if there are options for that, but I can't find any.


Solution

  • When using the batch command

    yii giiant-batch/models
    

    will create only models and skip CRUDs. There's also

    yii giiant-batch/cruds
    

    The default command

    yii giiant-batch
    

    runs both.