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.Resp(func(err *xerror.Err) { xerror.Exit(err)() }) 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.
Click to show internal directories.
Click to hide internal directories.