mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
chore: update references and imports
This commit is contained in:
parent
6063f28882
commit
d236649b05
5 changed files with 21 additions and 10 deletions
|
|
@ -6,8 +6,8 @@ import (
|
|||
"os"
|
||||
"strconv"
|
||||
|
||||
magellan "github.com/davidallendj/magellan/internal"
|
||||
"github.com/davidallendj/magellan/internal/cache/sqlite"
|
||||
magellan "github.com/davidallendj/magellan/pkg"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue