nvm

package
v0.2.107 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

README

NVM

Node Version Manager wrapper.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NvmExec

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

func NewExec

func NewExec(logger gg_log.ILogger) *NvmExec

func (*NvmExec) GetPath

func (instance *NvmExec) GetPath(path string) (response string)

func (*NvmExec) GetTempPath

func (instance *NvmExec) GetTempPath(subPath string) (response string)

func (*NvmExec) GetWorkPath

func (instance *NvmExec) GetWorkPath(subPath string) (response string)

func (*NvmExec) Help

func (instance *NvmExec) Help() (response string, err error)

func (*NvmExec) Install

func (instance *NvmExec) Install(version string) (response string, err error)

Install https://github.com/nvm-sh/nvm#installing-and-updating

func (*NvmExec) IsInstalled

func (instance *NvmExec) IsInstalled() bool

func (*NvmExec) LogDisableRotation

func (instance *NvmExec) LogDisableRotation()

func (*NvmExec) LogFlush

func (instance *NvmExec) LogFlush()

func (*NvmExec) NodeRun

func (instance *NvmExec) NodeRun(nodeVersion string, command string) (response string, err error)

func (*NvmExec) NpmRun

func (instance *NvmExec) NpmRun(nodeVersion string, command string) (response string, err error)

func (*NvmExec) NpxRun

func (instance *NvmExec) NpxRun(nodeVersion string, command string) (response string, err error)

func (*NvmExec) Root

func (instance *NvmExec) Root() string

func (*NvmExec) Run

func (instance *NvmExec) Run(nodeVersion string, commands ...string) (response string, err error)

func (*NvmExec) RunBackground

func (instance *NvmExec) RunBackground(nodeVersion string, commands ...string) (c *shell2.ShellCmd, err error)

func (*NvmExec) SetLogger

func (instance *NvmExec) SetLogger(logger gg_log.ILogger) *NvmExec

func (*NvmExec) SetRoot

func (instance *NvmExec) SetRoot(dir string) *NvmExec

func (*NvmExec) SetSubTemp

func (instance *NvmExec) SetSubTemp(enabled bool) *NvmExec

func (*NvmExec) SetTemp

func (instance *NvmExec) SetTemp(dir string) *NvmExec

func (*NvmExec) Temp

func (instance *NvmExec) Temp() string

func (*NvmExec) Use

func (instance *NvmExec) Use(nodeVersion string) (response string, err error)

func (*NvmExec) Version

func (instance *NvmExec) Version() (response string, err error)

func (*NvmExec) Work

func (instance *NvmExec) Work() string

type NvmHelper

type NvmHelper struct {
}
var (
	Nvm *NvmHelper
)

func (*NvmHelper) IsInstalled

func (instance *NvmHelper) IsInstalled() bool

func (*NvmHelper) NewExec

func (instance *NvmHelper) NewExec() *NvmExec

NewExec Creates new nvm command

func (*NvmHelper) Version

func (instance *NvmHelper) Version() (version string, err error)

Jump to

Keyboard shortcuts

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