mirror of
https://github.com/go-home-admin/toolset.git
synced 2026-04-22 16:17:04 +08:00
50 lines
1.1 KiB
Go
50 lines
1.1 KiB
Go
// gen for home toolset
|
|
package commands
|
|
|
|
import (
|
|
app "github.com/go-home-admin/home/bootstrap/services/app"
|
|
)
|
|
|
|
var _BeanCommandSingle *BeanCommand
|
|
var _OrmCommandSingle *OrmCommand
|
|
var _ProtocCommandSingle *ProtocCommand
|
|
var _RouteCommandSingle *RouteCommand
|
|
|
|
func GetAllProvider() []interface{} {
|
|
return []interface{}{
|
|
NewBeanCommand(),
|
|
NewOrmCommand(),
|
|
NewProtocCommand(),
|
|
NewRouteCommand(),
|
|
}
|
|
}
|
|
|
|
func NewBeanCommand() *BeanCommand {
|
|
if _BeanCommandSingle == nil {
|
|
_BeanCommandSingle = &BeanCommand{}
|
|
app.AfterProvider(_BeanCommandSingle, "")
|
|
}
|
|
return _BeanCommandSingle
|
|
}
|
|
func NewOrmCommand() *OrmCommand {
|
|
if _OrmCommandSingle == nil {
|
|
_OrmCommandSingle = &OrmCommand{}
|
|
app.AfterProvider(_OrmCommandSingle, "")
|
|
}
|
|
return _OrmCommandSingle
|
|
}
|
|
func NewProtocCommand() *ProtocCommand {
|
|
if _ProtocCommandSingle == nil {
|
|
_ProtocCommandSingle = &ProtocCommand{}
|
|
app.AfterProvider(_ProtocCommandSingle, "")
|
|
}
|
|
return _ProtocCommandSingle
|
|
}
|
|
func NewRouteCommand() *RouteCommand {
|
|
if _RouteCommandSingle == nil {
|
|
_RouteCommandSingle = &RouteCommand{}
|
|
app.AfterProvider(_RouteCommandSingle, "")
|
|
}
|
|
return _RouteCommandSingle
|
|
}
|