cmd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CFG = &Configuration{
	OutputDir:     "",
	Verbose:       false,
	IncludeTables: make([]string, 0),
	Global: &GlobalConfiguration{
		Author:           "bill",
		Date:             true,
		DateLayout:       "2006-01-02",
		Copyright:        true,
		CopyrightContent: "Mybatis code generator written in Golang",
		Website:          true,
		WebsiteContent:   "https://github.com/billcoding/mybatis-code-generator",
	},
	Entity: &EntityConfiguration{
		PKG:                      "entity",
		TableToEntityStrategy:    UnderlineToUpper,
		ColumnToFieldStrategy:    UnderlineToCamel,
		Comment:                  true,
		FieldComment:             true,
		Lombok:                   true,
		LombokData:               true,
		LombokNoArgsConstructor:  true,
		LombokAllArgsConstructor: true,
		LombokBuilder:            true,
		Implement:                false,
		Implements:               make([]string, 0),
		Extend:                   false,
		Extends:                  "",
		EntityClassPrefixes:      make([]string, 0),
		EntityClassSuffixes:      make([]string, 0),
		EntityAnnotation:         true,
		TableAnnotation:          true,
		IdAnnotation:             true,
		ColumnAnnotation:         true,
	},
	Mapper: &MapperConfiguration{
		PKG:              "mapper",
		NamePrefix:       "",
		NameSuffix:       "Mapper",
		MybatisPlus:      true,
		Comment:          true,
		MapperAnnotation: true,
	},
	Repository: &RepositoryConfiguration{
		PKG:                  "repository",
		NamePrefix:           "",
		NameSuffix:           "Repository",
		Comment:              true,
		RepositoryAnnotation: true,
	},
	XML: &XMLConfiguration{
		Dir:     "xml",
		Comment: true,
	},
}

Functions

func Execute

func Execute() error

Execute executes the root command.

func PrintVersion

func PrintVersion(goVersion bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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