diff --git a/beszel/cmd/hub/hub.go b/beszel/cmd/hub/hub.go index ffbe825..dbe06fa 100644 --- a/beszel/cmd/hub/hub.go +++ b/beszel/cmd/hub/hub.go @@ -22,7 +22,7 @@ func main() { app.RootCmd.AddCommand(&cobra.Command{ Use: "update", Short: "Update " + beszel.AppName + " to the latest version", - Run: update.UpdateBeszel, + Run: func(_ *cobra.Command, _ []string) { update.UpdateBeszel() }, }) hubApp := hub.NewHub(app) diff --git a/beszel/internal/update/update.go b/beszel/internal/update/update.go index 9ad5c82..2320bf9 100644 --- a/beszel/internal/update/update.go +++ b/beszel/internal/update/update.go @@ -8,10 +8,9 @@ import ( "github.com/blang/semver" "github.com/rhysd/go-github-selfupdate/selfupdate" - "github.com/spf13/cobra" ) -func UpdateBeszel(cmd *cobra.Command, args []string) { +func UpdateBeszel() { var latest *selfupdate.Release var found bool var err error