mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
remove cobra dependency for agent
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user