cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOneFactory added in v0.0.8

func CreateOneFactory(realPath, schemaName, realOutPutPath, projectPath, factoriesPath, appPath, entClientName,
	outputPath string,
)

func CreatePathAndCommonFile added in v0.0.6

func CreatePathAndCommonFile(commonPath string, outputPath string)

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.

func ExtraFlags

func ExtraFlags(cmd *cobra.Command) (string, string, string, string, string, string, string, bool, error)

func ExtraNameFromSchemaFilePath added in v0.1.0

func ExtraNameFromSchemaFilePath(schemaFile string) string

func Fatal

func Fatal(msg string)

func Fatalf

func Fatalf(format string, v ...interface{})

func GenerateFactories

func GenerateFactories(cmd *cobra.Command, _ []string)

func GetRealPathAndFilePath added in v0.1.0

func GetRealPathAndFilePath(schemaPath string, v os.FileInfo, outputPath string) (string, string)

func NewFunc added in v0.1.1

func NewFunc(astOut *ast.File,
	paramTypeName string,
	structType *ast.TypeSpec,
	fnIdent *ast.Ident,
	fnParamType *ast.StarExpr,
	generateForUnexportedFields, ignoreUnsupported bool,
	skipStructFields map[string]struct{},
	entClient string,
) error

NewFunc Create the New instance function.

func RunGenerate

func RunGenerate(schemaFile, schemaTypeName, outputPath, projectPath, factoriesPath, appPath, entClientName string) (
	io.Reader, error,
)

RunGenerate ===== generate one factory schema =======.

Types

This section is empty.

Jump to

Keyboard shortcuts

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