utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReleaseEndpoint = "https://api.github.com/repos/ploycloud/ploy-cli/releases/latest"

Functions

func CheckForUpdates

func CheckForUpdates() (string, bool, error)

func CloneRepo

func CloneRepo(url string) error

func FindComposeFile

func FindComposeFile() string

func SelfUpdate

func SelfUpdate() (bool, error)

Types

type GitRelease

type GitRelease struct {
	TagName string `json:"tag_name"`
	Assets  []struct {
		Name        string `json:"name"`
		DownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

Jump to

Keyboard shortcuts

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