mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 08:32:24 +00:00
add init hooks to nodeApp
This commit is contained in:
@@ -28,7 +28,11 @@ import (
|
|||||||
var nodeApp = app.New()
|
var nodeApp = app.New()
|
||||||
|
|
||||||
func Run(cmd *cobra.Command, args []string) {
|
func Run(cmd *cobra.Command, args []string) {
|
||||||
nodeApp.InitialHooks()
|
nodeApp.InitialHooks(
|
||||||
|
Init0Hook, Init1Hook, Init2Hook,
|
||||||
|
Init3Hook, Init4Hook, Init5Hook,
|
||||||
|
Init6Hook,
|
||||||
|
)
|
||||||
|
|
||||||
nodeApp.Run(RunHook)
|
nodeApp.Run(RunHook)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user