mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
1. fix repeat init api module
2. add custom config file flag
This commit is contained in:
@@ -30,6 +30,7 @@ func Execute() error {
|
||||
|
||||
func init() {
|
||||
cobra.OnInitialize(initConfig)
|
||||
rootCmd.PersistentFlags().StringVar(&cfgFile, "c", "", "Use Custom Config File")
|
||||
}
|
||||
|
||||
func initConfig() {
|
||||
|
||||
Reference in New Issue
Block a user