nodejs

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tag          = "node"
	Name         = "nodejs"
	CacheDirName = "nodecache"
)

Functions

func CheckArch

func CheckArch(check string) (archName string)

func CheckOS

func CheckOS(check string) (osName string)

func RuntimeArch

func RuntimeArch() (archName string)

func RuntimeOS

func RuntimeOS() (osName string)

func RuntimeSupported

func RuntimeSupported() (supported bool)

Types

type System

type System struct {
	system.CSystem

	OS   string
	Arch string
}

func New

func New() (s *System)

func (*System) Export

func (s *System) Export(ctx *cli.Context) (err error)

func (*System) ExportString

func (s *System) ExportString(ctx *cli.Context) (content string, err error)

func (*System) ExtraCommands

func (s *System) ExtraCommands(app *cli.App) (commands []*cli.Command)

func (*System) GetDefaultVersion

func (s *System) GetDefaultVersion() (version string)

func (*System) GetInstalledVersion

func (s *System) GetInstalledVersion() (version string, err error)

func (*System) GetKnownSums

func (s *System) GetKnownSums() (sums map[string]string, err error)

func (*System) HerokuBin

func (s *System) HerokuBin(name string, argv ...string) (status int, err error)

func (*System) IncludeCommands

func (s *System) IncludeCommands(app *cli.App) (commands []*cli.Command)

func (*System) Init

func (s *System) Init(this interface{})

func (*System) ListPackageDirs

func (s *System) ListPackageDirs(path string) (dirs []string, err error)

func (*System) MakeScriptCommands

func (s *System) MakeScriptCommands(app *cli.App) (commands []*cli.Command)

func (*System) NodeBin

func (s *System) NodeBin(name string, argv ...string) (status int, err error)

func (*System) NpmBin

func (s *System) NpmBin(name string, argv ...string) (status int, err error)

func (*System) NpxBin

func (s *System) NpxBin(name string, argv ...string) (status int, err error)

func (*System) PackageJsonsPresent

func (s *System) PackageJsonsPresent(dirs []string) (packageJsons []string)

func (*System) PackagesWithoutModules

func (s *System) PackagesWithoutModules(dirs []string) (withoutModules []string)

func (*System) ParseFileName

func (s *System) ParseFileName(path string) (version, osName, osArch string, err error)

func (*System) ParseVersionString

func (s *System) ParseVersionString(ver string) (version string, err error)

func (*System) PostInitSystem

func (s *System) PostInitSystem(ctx *cli.Context) (err error)

func (*System) Prepare

func (s *System) Prepare(ctx *cli.Context) (err error)

func (*System) UnExport

func (s *System) UnExport(ctx *cli.Context) (err error)

func (*System) UnExportString

func (s *System) UnExportString(ctx *cli.Context) (content string, err error)

func (*System) YarnBin

func (s *System) YarnBin(name string, argv ...string) (status int, err error)

func (*System) YarnCmd

func (s *System) YarnCmd(name string, argv ...string) (stdout, stderr string, status int, err error)

func (*System) YarnVersion

func (s *System) YarnVersion() (version string)

Jump to

Keyboard shortcuts

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