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
Matt Rickard 2017-02-13 11:38:54 -08:00
parent cfa70addd7
commit a44f87d57a
1 changed files with 2 additions and 0 deletions

View File

@ -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 {