cleanup code

This commit is contained in:
Ronmi Ren 2025-01-06 16:53:49 +08:00
commit 8b83d2c4e0

View file

@ -35,11 +35,7 @@ func Execute() {
func init() { func init() {
cobra.OnInitialize(initConfig) cobra.OnInitialize(initConfig)
// Here you will define your flags and configuration settings. rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.forgejo-pages.toml)")
// 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)")
} }
// initConfig reads in config file and ENV variables if set. // initConfig reads in config file and ENV variables if set.