commands

package
v0.0.0-...-ff91154 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoilerplateCmd

func BoilerplateCmd(cmd *cobra.Command, args []string)

BoilerplateCmd holds functions to generate router

func ControllerCmd

func ControllerCmd(cmd *cobra.Command, args []string)

ControllerCmd holds functions to generate controller

func GenerateCmd

func GenerateCmd(cmd *cobra.Command, args []string)

GenerateCmd holds functions to generate controllers, router, store

func ModelCmd

func ModelCmd(cmd *cobra.Command, args []string)

ModelCmd holds functions to generate model

func ReplaceNamespace

func ReplaceNamespace(path string, oldString string, newString string) error

ReplaceNamespace simply replace oldString by newString in file provided by path

func RouterCmd

func RouterCmd(cmd *cobra.Command, args []string)

RouterCmd holds functions to generate router

func StoreCmd

func StoreCmd(cmd *cobra.Command, args []string)

StoreCmd holds functions to generate store

Types

type Field

type Field struct {
	Name     string
	Type     string
	IsId     bool
	Required bool
}

Field is a structure that holds characteristics of field

type Model

type Model struct {
	Name   string
	Fields []*Field
}

Model is a structure that holds characteristics of model

Jump to

Keyboard shortcuts

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