fix(influx): drop persistent pre run func taht double prints help cmd
parent
9338a0be97
commit
3f56658418
|
|
@ -87,12 +87,6 @@ func influxCmd() *cobra.Command {
|
|||
Use: "influx",
|
||||
Short: "Influx Client",
|
||||
SilenceUsage: true,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
if err := checkSetup(flags.host); err != nil {
|
||||
fmt.Printf("Note: %v\n", internal.ErrorFmt(err))
|
||||
}
|
||||
seeHelp(cmd, args)
|
||||
},
|
||||
}
|
||||
|
||||
setViperOptions()
|
||||
|
|
|
|||
Loading…
Reference in New Issue