cli

package
v0.5.43 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListTargetUnknown listTarget = iota
	ListTargetAvailableProducts
	ListTargetInstalled
	ListTargetLaunchOptions
	ListTargetSteamShortcuts
	ListTargetTasks
)
View Source
const (
	ValResMismatch        = "mismatch"
	ValResError           = "error"
	ValResMissingChecksum = "missing checksum"
	ValResFileNotFound    = "file not found"
	ValResValid           = "valid"
)

Variables

View Source
var (
	ErrInstallInfoNotFound = errors.New("install info not found")
	ErrInstallInfoTooMany  = errors.New("multiple installations match request")
)
View Source
var (
	ErrMissingExtractedPayload       = errors.New("cannot locate extracted payload")
	ErrUnknownPostInstallCommand     = errors.New("unknown postinstall command")
	ErrCatCommandSourceIsEmpty       = errors.New("cat command source glob is empty")
	ErrCatCommandDstPathIsEmpty      = errors.New("cat command destination path is empty")
	ErrNoFilesMatchSourceGlobPattern = errors.New("no files match source glob pattern")
	ErrNoMacOsAppBundle              = errors.New("cannot locate macOS app bundle")
)
View Source
var (
	GitTag string
)

Functions

func BackupMetadata added in v0.1.27

func BackupMetadata() error

func BackupMetadataHandler added in v0.1.27

func BackupMetadataHandler(_ *url.URL) error

func Connect added in v0.3.6

func Connect(urlStr, username, password, cookies string, origin data.Origin, reset bool) error

func ConnectHandler added in v0.3.6

func ConnectHandler(u *url.URL) error

func Download added in v0.1.1

func Download(id string,
	ii *InstallInfo,
	originData *data.OriginData,
	manualUrlFilter ...string) error

func DownloadHandler added in v0.1.1

func DownloadHandler(u *url.URL) error

func FetchData added in v0.4.43

func FetchData(id string, ii *InstallInfo) error

func FetchDataHandler added in v0.4.43

func FetchDataHandler(u *url.URL) error

func Fix added in v0.4.53

func Fix(id string, ii *InstallInfo, fx *fixes, reset bool) error

func FixHandler added in v0.4.53

func FixHandler(u *url.URL) error

func Install added in v0.1.3

func Install(id string, ii *InstallInfo) error

func InstallHandler added in v0.1.3

func InstallHandler(u *url.URL) error

func LaunchOptions added in v0.4.53

func LaunchOptions(id string, request *InstallInfo, et *execTask, reset bool) error

func LaunchOptionsHandler added in v0.4.53

func LaunchOptionsHandler(u *url.URL) error

func List added in v0.2.74

func List(lt listTarget,
	installInfo *InstallInfo,
	id string, update bool) error

func ListHandler added in v0.2.74

func ListHandler(u *url.URL) error

func PostInstallScriptPath added in v0.1.7

func PostInstallScriptPath(productExtractsDir string, localFilename string) string

func Prefix added in v0.2.76

func Prefix(id string, request *InstallInfo, mod, program, wineBinary string, et *execTask) error

func PrefixHandler added in v0.2.76

func PrefixHandler(u *url.URL) error

func PrefixMods added in v0.2.76

func PrefixMods() []string

func PresetLaunchOptions added in v0.4.56

func PresetLaunchOptions(id string, request *InstallInfo, rdx redux.Writeable) error

func PresetLaunchOptionsHandler added in v0.4.56

func PresetLaunchOptionsHandler(u *url.URL) error

func RemoveDownloads added in v0.1.3

func RemoveDownloads(id string, ii *InstallInfo, rdx redux.Writeable) error

func RemoveDownloadsHandler added in v0.1.3

func RemoveDownloadsHandler(u *url.URL) error

func Reveal added in v0.2.74

func Reveal(id string, ii *InstallInfo, installed, downloads, backups bool) error

func RevealHandler added in v0.2.74

func RevealHandler(u *url.URL) error

func Run added in v0.1.38

func Run(id string, request *InstallInfo, et *execTask) error

func RunHandler added in v0.1.38

func RunHandler(u *url.URL) error

func SetupSteamCmd added in v0.3.38

func SetupSteamCmd(force bool) error

func SetupSteamCmdHandler added in v0.3.38

func SetupSteamCmdHandler(u *url.URL) error

func SetupWine added in v0.1.98

func SetupWine(force bool) error

func SetupWineHandler added in v0.1.98

func SetupWineHandler(u *url.URL) error

func SteamShortcut added in v0.2.74

func SteamShortcut(id, forId string, ii *InstallInfo, sgo *steamGridOptions, remove bool) error

func SteamShortcutHandler added in v0.2.74

func SteamShortcutHandler(u *url.URL) error

func Uninstall added in v0.1.14

func Uninstall(id string, request *InstallInfo, purge bool) error

func UninstallHandler added in v0.1.14

func UninstallHandler(u *url.URL) error

func Update added in v0.1.99

func Update(id string, all, verbose, force bool) error

func UpdateHandler added in v0.1.99

func UpdateHandler(u *url.URL) error

func Validate added in v0.1.2

func Validate(id string,
	ii *InstallInfo,
	manualUrlFilter ...string) error

func ValidateHandler added in v0.1.2

func ValidateHandler(u *url.URL) error

func VersionHandler

func VersionHandler(_ *url.URL) error

Types

type InstallInfo added in v0.2.70

type InstallInfo struct {
	OperatingSystem        vangogh_integration.OperatingSystem `json:"os"`
	LangCode               string                              `json:"lang-code"`
	Origin                 data.Origin                         `json:"origin"`
	NoDlcs                 bool                                `json:"no-dlcs"`
	DownloadableContent    []string                            `json:"dlc"`
	Version                string                              `json:"version"`
	TimeUpdated            string                              `json:"time-updated,omitempty"`
	EstimatedBytes         int64                               `json:"estimated-bytes"`
	KeepDownloads          bool                                `json:"keep-downloads"`
	NoSteamShortcut        bool                                `json:"no-steam-shortcut"`
	NoPresentLaunchOptions bool                                `json:"no-preset-launch-options"`
	Env                    []string                            `json:"env"`
	// contains filtered or unexported fields
}

func (*InstallInfo) Matches added in v0.3.92

func (ii *InstallInfo) Matches(another *InstallInfo) 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 UmuConfig added in v0.2.45

type UmuConfig struct {
	GogId   string
	Prefix  string
	Proton  string
	ExePath string
	Args    []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