From 16fa092ec0339f59365e695d40b93ef59d76c5cc Mon Sep 17 00:00:00 2001 From: Alexey Vasiliev Date: Mon, 15 Jul 2024 21:55:50 +0300 Subject: [PATCH] fix typo --- cmd/root.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index d321b54..2bca9a0 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -156,16 +156,10 @@ func initConfig() { func init() { cobra.OnInitialize(initConfig) - // Here you will define your flags and configuration settings. - // Cobra supports persistent flags, which, if defined here, - // will be global for your application. - // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.postal_server.yaml)") rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.postal_server.yaml)") - // Cobra also supports local flags, which will only run - // when this action is called directly. - rootCmd.SetVersionTemplate("Certonid version {{.Version}}\n") + rootCmd.SetVersionTemplate("PostalServer version {{.Version}}\n") rootCmd.PersistentFlags().Bool("debug", false, "use debug logging") viper.BindPFlag("debug", rootCmd.PersistentFlags().Lookup("debug"))