cmd

package
v0.0.0-...-83a6fd2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url string, savePath string) (file *os.File, err error)

func Execute

func Execute(ver string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetRootCmd

func GetRootCmd() *cobra.Command

Types

type Asset

type Asset struct {
	Url  string `json:"browser_download_url"`
	Name string
}

type GithubApiResponse

type GithubApiResponse struct {
	Version string  `json:"tag_name"`
	Assets  []Asset `json:"assets"`
}

func GetJson

func GetJson(url string) (*GithubApiResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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