Fixed lint errors

This commit is contained in:
David Allen 2024-08-13 17:45:08 -06:00
parent 2b291f811a
commit 42dbfeb4f9
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -67,9 +67,9 @@ func init() {
crawlCmd.Flags().StringP("password", "p", "", "Set the password for the BMC")
crawlCmd.Flags().BoolP("insecure", "i", false, "Ignore SSL errors")
viper.BindPFlag("crawl.username", crawlCmd.Flags().Lookup("username"))
viper.BindPFlag("crawl.password", crawlCmd.Flags().Lookup("password"))
viper.BindPFlag("crawl.insecure", crawlCmd.Flags().Lookup("insecure"))
checkBindFlagError(viper.BindPFlag("crawl.username", crawlCmd.Flags().Lookup("username")))
checkBindFlagError(viper.BindPFlag("crawl.password", crawlCmd.Flags().Lookup("password")))
checkBindFlagError(viper.BindPFlag("crawl.insecure", crawlCmd.Flags().Lookup("insecure")))
rootCmd.AddCommand(crawlCmd)
}