makeCommand

package
v0.0.0-...-573af51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddControllersToRouter

func AddControllersToRouter(modelNamePascalCase string) error

AddControllersToRouter creates the routes inside the router file for the 5 controllers created by the crud command

func AddFixturesToEnv

func AddFixturesToEnv() error

AddFixturesToEnv writes the RUN_FIXTURES variable inside .env.dist file

func AddFixturesToMain

func AddFixturesToMain(config config.MakeCmdConfig) error

AddFixturesToMain add lines to call fixtures package inside main file of the project

func AddModelToMigrations

func AddModelToMigrations(modelNamePascalCase string) error

AddModelToMigrations adds the model to migrations file

func MakeCrud

func MakeCrud(modelName string) error

MakeCrud creates controllers for the model chosen

func MakeFixtures

func MakeFixtures(modelName string) error

MakeFixtures get config, and execute templates for the make fixtures command

func MakeModel

func MakeModel(modelName string) error

MakeModel creates the config and execute templates in order to create a new Model

func MakeTests

func MakeTests(modelName string) error

MakeTests get config, and execute templates for the make fixtures command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL