self

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewShellRC = `
# vm_envs start
if [ -z $VM_DISABLE ]; then
    . ~/.vmr/vmr.sh
fi
# vm_envs end`
View Source
var NewShellRCFish = `# vm_envs start
if not test $VM_DISABLE 
    . ~/.vmr/vmr.fish
end
# vm_envs end`
View Source
var OldShellRC string = `# vm_envs start
if [ -z $VM_DISABLE ]; then
    . ~/.vm/vmr.sh
fi
# vm_envs end`
View Source
var UnixRemoveScript string = `#!/bin/sh
vmr Uins
rm -rf %s`
View Source
var UnixScript string = `` /* 169-byte string literal not displayed */
View Source
var WinRemoveScript string = `vmr Uins
rmdir /s /q %s`
View Source
var WinScript string = `` /* 144-byte string literal not displayed */

var WinScript string = `powershell -nop -c "iex(New-Object Net.WebClient).DownloadString('https://gvc.1710717.xyz/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.ps1')"`

Functions

func DetectAndRemoveOldVersions

func DetectAndRemoveOldVersions()

Handle old versions.

func InstallSelf

func InstallSelf()

Install vmr itself.

func RemoveCurrentVersion

func RemoveCurrentVersion()

Preparation for removing the current version of VMR.

func SetUninstallScript

func SetUninstallScript()

func SetUpdateScript

func SetUpdateScript()

Types

type OldConfig

type OldConfig struct {
	ProxyURI           string `json:"proxy_uri"`
	ReverseProxy       string `json:"reverse_proxy"`
	AppInstallationDir string `json:"app_installation_dir"`
}

Jump to

Keyboard shortcuts

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