mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
refactor: added flag to set secrets file for crawl
This commit is contained in:
parent
41346aebbb
commit
7990ec097d
2 changed files with 2 additions and 1 deletions
|
|
@ -68,6 +68,7 @@ func init() {
|
|||
CrawlCmd.Flags().StringP("username", "u", "", "Set the username for the BMC")
|
||||
CrawlCmd.Flags().StringP("password", "p", "", "Set the password for the BMC")
|
||||
CrawlCmd.Flags().BoolP("insecure", "i", false, "Ignore SSL errors")
|
||||
CrawlCmd.Flags().StringVarP(&secretsFile, "file", "f", "nodes.json", "set the secrets file with BMC credentials")
|
||||
|
||||
checkBindFlagError(viper.BindPFlag("crawl.username", CrawlCmd.Flags().Lookup("username")))
|
||||
checkBindFlagError(viper.BindPFlag("crawl.password", CrawlCmd.Flags().Lookup("password")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue