feat: self update

This commit is contained in:
krau
2024-10-10 23:38:23 +08:00
parent 1cbcebc148
commit e168874c9a
5 changed files with 122 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
@@ -13,5 +15,7 @@ var rootCmd = &cobra.Command{
}
func Execute() {
rootCmd.Execute()
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
}
}