Generate
Generate holds the subcommands that generate components in Ox applications, these components could be models, migrations, actions, templates. This is one of the commands where the benefit of the plugin system can be mostly exploded by writing custom generators that satisfy the requirements of the development team using the codebase. The generate command serves as the base for all those generate subcommands, but it does not do anything on its own.
Invoking the generate command lists the generators available:
[info] Using github.com/wawandco/ox/cmd/ox
Available Generators:
Name Plugin ---- ------ ox ox/generate-cli-main template buffalo/generate-template model buffalo/generate-model action buffalo/generate-action resource buffalo/generate-resource task grift/generate-task migration pop/generate-migration
[error] no generator name specified
To use one of these generators you can use the following syntax:
ox generate <generator> [<args>...]
Some usage examples are:
ox generate model users id:uuid name:string ox generate migration create_users_tableox generate action users/createox generate template users/profile