chore: update references and imports

This commit is contained in:
David Allen 2025-04-26 18:12:21 -06:00
parent 1ed8c59f80
commit 6deb292494
Signed by: towk
GPG key ID: 0430CDBE22619155
5 changed files with 21 additions and 10 deletions

View file

@ -15,8 +15,6 @@ import (
var (
host string
firmwareUri string
firmwareVersion string
component string
transferProtocol string
showStatus bool
Insecure bool
@ -124,9 +122,7 @@ func init() {
UpdateCmd.Flags().StringVar(&username, "username", "", "Set the BMC user")
UpdateCmd.Flags().StringVar(&password, "password", "", "Set the BMC password")
UpdateCmd.Flags().StringVar(&transferProtocol, "scheme", "https", "Set the transfer protocol")
UpdateCmd.Flags().StringVar(&firmwareUrl, "firmware-url", "", "Set the path to the firmware")
UpdateCmd.Flags().StringVar(&firmwareVersion, "firmware-version", "", "Set the version of firmware to be installed")
UpdateCmd.Flags().StringVar(&component, "component", "", "Set the component to upgrade (BMC|BIOS)")
UpdateCmd.Flags().StringVar(&firmwareUri, "firmware-uri", "", "Set the path to the firmware")
UpdateCmd.Flags().BoolVar(&showStatus, "status", false, "Get the status of the update")
checkBindFlagError(viper.BindPFlag("update.username", UpdateCmd.Flags().Lookup("username")))