cmds

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: 0BSD Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Main  = flags.New("obd", "OneBD command line tools")
	Model = Main.SubCommand("model", "generate code")
	App   = Main.SubCommand("app", "generate application code")
	Tpl   = Main.SubCommand("tpl", "template tools")
	Api   = Main.SubCommand("api", "api tools")
	Ts    = Main.SubCommand("ts", "typescript generate tools")
)
View Source
var (
	RepoName   = Main.String("repo", "", "repository name, for example: app,github.com/veypi/OneBD, will auto detect from go.mod")
	DirRoot    = Main.String("dir", "./", "repo root dir")
	DirApi     = Main.String("dirapi", "api", "api dir")
	DirModel   = Main.String("dirmodel", "models", "model dir")
	ForceWrite = Main.Bool("y", false, "force to overwrite file")
)
View Source
var LogLevel = Main.String("l", "debug", "log level: trace|debug|info|warn|error|fatal")

Functions

func Parse

func Parse()

Types

This section is empty.

Jump to

Keyboard shortcuts

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