Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InstallCommand cli.Command = cli.Command{ Name: "install", Usage: "install ablog engine", Action: func(_ *cli.Context) { if core.Config.HasFile() { core.Log.Fatal("ABlog has been installed") } if err := core.Config.WriteFile(); err != nil { core.Log.Fatal("instaill fail : %v", err) } core.PrepareDB() createAdminUser() core.Log.Info("ABlog is installed successfully !!") }, }
View Source
var ServerCommand cli.Command = cli.Command{ Name: "server", Usage: "run ablog web server", Action: func(ctx *cli.Context) { if core.Db == nil || core.Web == nil { core.Log.Fatal("did you install ABlog?") } if err := model.Register(); err != nil { panic(err) } controller.Register() core.Web.Run() }, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.