locker

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LockerFileName = ".vmr.lock"
)
View Source
const PowershellHook = `` /* 421-byte string literal not displayed */

for Powershell

View Source
const ShellHook = `alias cdvmr='cd'
cdhook() {
    if [ -d "$1" ];then
        cdvmr "$1"
        vmr use -E
    fi
}

alias cd='cdhook'`

for Bash/Zsh

Variables

This section is empty.

Functions

func AddCdHook

func AddCdHook()

func CdHookForUnix

func CdHookForUnix()

func CdHookForWindows

func CdHookForWindows()

Types

type VersionLocker

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

Lock the sdk version for a project.

func NewVLocker

func NewVLocker() (v *VersionLocker)

func (*VersionLocker) FindLockerFile

func (v *VersionLocker) FindLockerFile(dirPath ...string) string

func (*VersionLocker) Get

func (v *VersionLocker) Get() (vInfo string)

func (*VersionLocker) Load

func (v *VersionLocker) Load()

func (*VersionLocker) Save

func (v *VersionLocker) Save(vInfo string)

Jump to

Keyboard shortcuts

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