cmd

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CFG = &cfg.Configuration{
	Module:        "",
	OutputDir:     "",
	Verbose:       false,
	IncludeTables: make([]string, 0),
	Global: &cfg.GlobalConfiguration{
		Author:           "bill",
		DateLayout:       "2006-01-02",
		CopyrightContent: "An anorm Code generator written in Go",
		WebsiteContent:   "https://github.com/go-the-way/anorm-cli",
	},
	Entity: &cfg.EntityConfiguration{
		PKG:                   "entity",
		TableToEntityStrategy: cfg.UnderlineToUpper,
		ColumnToFieldStrategy: cfg.UnderlineToUpper,
		FileNameStrategy:      cfg.Default,
		JSONTag:               true,
		JSONTagKeyStrategy:    cfg.Default,
		FieldIdUpper:          true,
		Comment:               true,
		FieldComment:          true,
		NamePrefix:            "",
		NameSuffix:            "",
	},
	Config: &cfg.CfgConfiguration{
		PKG:  "config",
		Name: "config",
	},
}

Functions

func Execute

func Execute() error

Execute executes the root command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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