models

package
v2.0.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	ModelPath string
	ModelPkg  string
	StructTag string
	// contains filtered or unexported fields
}

func (Generator) CmdName

func (Generator) CmdName() string

func (Generator) Description

func (Generator) Description() string

func (*Generator) Flags

func (g *Generator) Flags() *pflag.FlagSet

func (*Generator) Generate

func (mg *Generator) Generate(ctx context.Context, root string, args []string) error

Generate implements generate.Generator and is the entry point for `buffalo generate model`

func (*Generator) GenerateResourceModels

func (mg *Generator) GenerateResourceModels(ctx context.Context, root string, args []string) error

GenerateResourceModels implements resource.Modeler and is responsible for generating a model during `buffalo generate resource`

func (Generator) PluginName

func (Generator) PluginName() string

func (*Generator) PrintFlags

func (g *Generator) PrintFlags(w io.Writer) error

func (*Generator) ResourceFlags

func (g *Generator) ResourceFlags() []*pflag.Flag

Jump to

Keyboard shortcuts

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