1. fix repeat init api module

2. add custom config file flag
This commit is contained in:
陈景阳
2022-01-03 19:27:29 +08:00
parent b2ad543de3
commit f18b6b57e8
5 changed files with 28 additions and 29 deletions

View File

@@ -30,6 +30,7 @@ func Execute() error {
func init() {
cobra.OnInitialize(initConfig)
rootCmd.PersistentFlags().StringVar(&cfgFile, "c", "", "Use Custom Config File")
}
func initConfig() {