Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DemoCommand = &cobra.Command{ Use: "demo", Short: "demo for framework", Run: func(c *cobra.Command, args []string) { container := c.GetContainer() appService := container.MustMake(contract.AppKey).(contract.App) fmt.Println("app base folder:", appService.BaseFolder()) }, }
helpCommand show current envionment
Functions ¶
func AddKernelCommands ¶
AddKernelCommands will add all command/* to root command
func InitCronCommands ¶ added in v1.0.2
InitCronCommands 初始化Cron相关的命令
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.