generate

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Category

func Category() string

Category returns the mongo category.

func Clean

func Clean() error

Clean cleans the mongo templates.

func Do

func Do(ctx *Context) error

Do executes model template and output the result into the specified file path

func RevertTemplate

func RevertTemplate(name string) error

RevertTemplate reverts the given template.

func Templates

func Templates(_ *cli.Context) error

Templates initializes the mongo templates.

func Update

func Update() error

Update cleans and updates the templates.

Types

type Context

type Context struct {
	Types  []string
	Cache  bool
	Output string
	Cfg    *config.Config
}

Context defines the model generation data what they needs

Jump to

Keyboard shortcuts

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