cmds

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 11 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

	xcmd_ss.Init()
	xcmd_migrate.Init(func(opt *xcmd_migrate.Options) {
		opt.Db = &gorm.DB{}
	})
}, func() error {
	_l := logs.Default()
	_l.Version = version.Version
	_l.Service = Service
	_l.Init()
	return nil
})

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