cli

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValResMismatch        = "mismatch"
	ValResError           = "error"
	ValResMissingChecksum = "missing checksum"
	ValResFileNotFound    = "file not found"
	ValResValid           = "valid"
)

Variables

View Source
var (
	GitTag string
)

Functions

func Backup

func Backup() error

func BackupHandler

func BackupHandler(_ *url.URL) error

func CacheGitHubReleases added in v0.1.23

func CacheGitHubReleases(operatingSystems []vangogh_local_data.OperatingSystem, releaseSelector *GitHubReleaseSelector, force bool) error

func CacheGitHubReleasesHandler added in v0.1.23

func CacheGitHubReleasesHandler(u *url.URL) error

func CleanupGitHubReleases added in v0.1.23

func CleanupGitHubReleases(operatingSystems []vangogh_local_data.OperatingSystem) error

func CleanupGitHubReleasesHandler added in v0.1.23

func CleanupGitHubReleasesHandler(u *url.URL) error

func CurrentOS added in v0.1.6

func Download added in v0.1.1

func Download(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_local_data.DownloadType,
	force bool) error

func DownloadHandler added in v0.1.1

func DownloadHandler(u *url.URL) error

func Extract added in v0.1.6

func Extract(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_local_data.DownloadType,
	force bool) error

func ExtractHandler added in v0.1.6

func ExtractHandler(u *url.URL) error

func FinalizeInstallation added in v0.1.6

func FinalizeInstallation(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string) error

func FinalizeInstallationHandler added in v0.1.6

func FinalizeInstallationHandler(u *url.URL) error

func GetDownloadMetadata added in v0.1.23

func GetDownloadMetadata(id string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_local_data.DownloadType,
	force bool) (*vangogh_local_data.DownloadMetadata, error)

func GetDownloadsMetadata added in v0.1.1

func GetDownloadsMetadata(ids []string, force bool) error

func GetDownloadsMetadataHandler added in v0.1.1

func GetDownloadsMetadataHandler(u *url.URL) error

func GetGitHubReleases added in v0.1.23

func GetGitHubReleases(operatingSystems []vangogh_local_data.OperatingSystem, force bool) error

func GetGitHubReleasesHandler added in v0.1.23

func GetGitHubReleasesHandler(u *url.URL) error

func Ids added in v0.1.4

func Ids(u *url.URL) []string

func Install added in v0.1.3

func Install(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_local_data.DownloadType,
	native bool,
	keepDownloads bool,
	force bool) error

func InstallHandler added in v0.1.3

func InstallHandler(u *url.URL) error

func ListInstalled added in v0.1.13

func ListInstalled() error

func ListInstalledHandler added in v0.1.13

func ListInstalledHandler(u *url.URL) error

func NativeInstall added in v0.1.12

func NativeInstall(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_local_data.DownloadType,
	force bool) error

func NativeInstallHandler added in v0.1.12

func NativeInstallHandler(u *url.URL) error

func OsLangCodeDownloadType added in v0.1.4

func OsLangCodeDownloadType(u *url.URL) ([]vangogh_local_data.OperatingSystem, []string, []vangogh_local_data.DownloadType)

func PinInstalledMetadata added in v0.1.6

func PinInstalledMetadata(ids []string, force bool) error

func PinInstalledMetadataHandler added in v0.1.6

func PinInstalledMetadataHandler(u *url.URL) error

func PlaceExtracts added in v0.1.6

func PlaceExtracts(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_local_data.DownloadType,
	force bool) error

func PlaceExtractsHandler added in v0.1.6

func PlaceExtractsHandler(u *url.URL) error

func PostInstallScriptPath added in v0.1.7

func PostInstallScriptPath(productExtractsDir string, link vangogh_local_data.DownloadLink) string

func RemoveDownloads added in v0.1.3

func RemoveDownloads(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string,
	force bool) error

func RemoveDownloadsHandler added in v0.1.3

func RemoveDownloadsHandler(u *url.URL) error

func RemoveExtracts added in v0.1.6

func RemoveExtracts(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string,
	force bool) error

func RemoveExtractsHandler added in v0.1.6

func RemoveExtractsHandler(u *url.URL) error

func ResetSetup added in v0.1.1

func ResetSetup() error

func ResetSetupHandler added in v0.1.1

func ResetSetupHandler(_ *url.URL) error

func RevealDownloads added in v0.1.3

func RevealDownloads(ids []string) error

func RevealDownloadsHandler added in v0.1.3

func RevealDownloadsHandler(u *url.URL) error

func RevealInstalled added in v0.1.7

func RevealInstalled(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	langCodes []string) error

func RevealInstalledHandler added in v0.1.7

func RevealInstalledHandler(u *url.URL) error

func Serve added in v0.1.19

func Serve(port int, stderr bool) error

func ServeHandler added in v0.1.19

func ServeHandler(u *url.URL) error

func Setup

func Setup(
	protocol, address, port string,
	username, password string,
	installPath string) error

func SetupHandler

func SetupHandler(u *url.URL) error

func TestSetup

func TestSetup() error

func TestSetupHandler

func TestSetupHandler(_ *url.URL) error

func Uninstall added in v0.1.14

func Uninstall(ids []string,
	operatingSystems []vangogh_local_data.OperatingSystem,
	keepDownloads bool,
	force bool) error

func UninstallHandler added in v0.1.14

func UninstallHandler(u *url.URL) error

func Validate added in v0.1.2

func Validate(ids []string, operatingSystems []vangogh_local_data.OperatingSystem, langCodes []string) error

func ValidateHandler added in v0.1.2

func ValidateHandler(u *url.URL) error

func VersionHandler

func VersionHandler(_ *url.URL) error

Types

type GitHubReleaseSelector added in v0.1.23

type GitHubReleaseSelector struct {
	Owner string
	Repo  string
	Tags  []string
	All   bool
}

type PostInstallScript added in v0.1.6

type PostInstallScript struct {
	// contains filtered or unexported fields
}

func ParsePostInstallScript added in v0.1.6

func ParsePostInstallScript(path string) (*PostInstallScript, error)

func (*PostInstallScript) BundleName added in v0.1.6

func (pis *PostInstallScript) BundleName() string

func (*PostInstallScript) CustomCommands added in v0.1.6

func (pis *PostInstallScript) CustomCommands() []string

func (*PostInstallScript) InstallerType added in v0.1.6

func (pis *PostInstallScript) InstallerType() string

type SetupProperties added in v0.1.1

type SetupProperties map[string]string

type ValidationResult added in v0.1.5

type ValidationResult string

Jump to

Keyboard shortcuts

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