cmds

package
v0.1.33 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "DR"
View Source
const Service = "g"

Variables

View Source
var Execute = xcmds.Init(EnvPrefix, func(cmd *cobra.Command) {
	defer xerror.Assert()

	cmd.Use = Service
	cmd.Version = version.Version

	migrate_cmd.InitCommand(func(opt *migrate_cmd.Options) {
		opt.Db = &gorm.DB{}
	})

	ss_cmd.Init()
}, func() (err error) {
	defer xerror.RespErr(&err)

	_l := logs.Default()
	_l.Version = version.Version
	_l.Service = Service
	_l.Init()

	xcmds.InitLog()

	return
})

Execute exec

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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