cmd

package
v0.0.0-...-090899e Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Entity

type Entity struct {
	Name           string
	LowerName      string
	Fields         []Field
	HasDate        bool
	HasCustomTypes bool
	ModulesPath    string
}

Entity is the struct that represents the entity the user wants to create

type Field

type Field struct {
	Name      string
	Type      string
	IsSlice   bool
	SliceType string
}

Field represents one field of the entity the user wants to create

Jump to

Keyboard shortcuts

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