self

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 13 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
cd ~
vmr Uins
rm -rf %s`
View Source
var UnixScript string = `#!/bin/sh
cd ~
curl --proto '=https' --tlsv1.2 -sSf https://scripts.vmr.us.kg | sh`
View Source
var WinMingwRemoveScript string = `#!/bin/sh
powershell %s`
View Source
var WinMingwScript string = `#!/bin/sh
cd ~
powershell %s`
View Source
var WinRemoveScript string = `cd %HOMEPATH%
vmr Uins
rmdir /s /q `
View Source
var WinScript string = `cd %HOMEPATH%
powershell -c "irm https://scripts.vmr.us.kg/windows | iex"`

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