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 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)
Click to show internal directories.
Click to hide internal directories.