Call RootCmd's persistentPreRun from svc cmd
Currently the service command overwrites the RootCmd's persistent pre run. Now it will run the rootcmd's persistent pre run after it runs its own.pull/1127/head
parent
cfa70addd7
commit
a44f87d57a
|
@ -49,6 +49,8 @@ var serviceCmd = &cobra.Command{
|
|||
os.Exit(1)
|
||||
}
|
||||
serviceURLTemplate = t
|
||||
|
||||
RootCmd.PersistentPreRun(cmd, args)
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if len(args) == 0 || len(args) > 1 {
|
||||
|
|
Loading…
Reference in New Issue