Reorganize cmd init functions
This commit is contained in:
parent
d9d00ba60c
commit
f5e44d9eb3
4 changed files with 22 additions and 7 deletions
|
|
@ -36,6 +36,9 @@ func init() {
|
|||
var webCmd = &cobra.Command{
|
||||
Use: "web",
|
||||
Short: "Starts the rest api web server",
|
||||
PreRun: func(cmd *cobra.Command, args []string) {
|
||||
fullInit()
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
// Version notification
|
||||
|
|
|
|||
Reference in a new issue