Documentation ¶
Overview ¶
Package upgrade
Copyright © 2023 zcubbs https://github.com/zcubbs
Index ¶
Constants ¶
View Source
const ( InstallScriptURL = "https://raw.githubusercontent.com/zcubbs/zrun/main/scripts/install/install.sh" InstallScript = "/tmp/zrun-install.sh" )
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "upgrade", Short: "upgrade is used to upgrade zrun to latest version", Long: ``, Run: func(cmd *cobra.Command, args []string) { verbose := cmd.Flag("verbose").Value.String() == "true" style.PrintColoredHeader("update zrun to latest version") util.Must( util.RunTask(func() error { err := upgrade(verbose) if err != nil { return err } return nil }, true)) }, }
Cmd represents the os command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.