mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-06 10:20:26 +02:00
configs to root.
This commit is contained in:
parent
62353c776d
commit
66d22dede4
3 changed files with 20 additions and 53 deletions
|
@ -33,14 +33,7 @@ func init() {
|
|||
Run: service.ServeCommand,
|
||||
}
|
||||
|
||||
cobra.OnInitialize(func() {
|
||||
service.Configs.Set()
|
||||
service.Preflight()
|
||||
})
|
||||
|
||||
if err := service.Configs.Init(command); err != nil {
|
||||
log.Panic().Err(err).Msg("unable to run serve command")
|
||||
}
|
||||
cobra.OnInitialize(service.Preflight)
|
||||
|
||||
root.AddCommand(command)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue