upgrade

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL