From 8b83d2c4e0eecdf35106ec2b5eef46119ce2b6a8 Mon Sep 17 00:00:00 2001 From: Ronmi Ren Date: Mon, 6 Jan 2025 16:53:49 +0800 Subject: [PATCH] cleanup code --- cmd/root.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 6fe1ef6..7480b33 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -35,11 +35,7 @@ func Execute() { 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/.forgejo-pages.yaml)") + rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.forgejo-pages.toml)") } // initConfig reads in config file and ENV variables if set.