command

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildVersion

func BuildVersion() string

func InitFlagSetForConfig

func InitFlagSetForConfig(s *pflag.FlagSet, cc *Config)

func LoadDriver

func LoadDriver(URL string) (driver.Driver, error)

func NewGithubClient

func NewGithubClient(accessToken string) *github.Client

func NewSqlite3

func NewSqlite3(string) gorm.Dialector

func WriteFile

func WriteFile(filename string, data []byte) error

WriteFile writes data to a file named by filename. If the file does not exist, WriteFile creates it and its upper level paths.

Types

type Config

type Config struct {
	ens.Option
	DisableCommentTag bool              `yaml:"disableCommentTag" json:"disableCommentTag"`     // 禁用注释放入tag标签中
	HasColumn         bool              `yaml:"hasColumn" json:"hasColumn"`                     // 是否输出字段
	SkipColumns       []string          `yaml:"skipColumns" json:"skipColumns"`                 // 忽略输出字段, 格式 table.column
	Package           string            `yaml:"package" json:"package"`                         // 包名
	Options           map[string]string `yaml:"options" json:"options"`                         // 选项
	DisableDocComment bool              `yaml:"disable_doc_comment" json:"disable_doc_comment"` // 禁用文档注释
}

type RootCmd

type RootCmd struct {
	// contains filtered or unexported fields
}

func NewRootCmd

func NewRootCmd() *RootCmd

func (*RootCmd) Execute

func (r *RootCmd) Execute() error

Execute adds all child commands to the root command and sets flags appropriately.

Jump to

Keyboard shortcuts

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