yarn

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigGet

func ConfigGet(key, executablePath string, jsonOutput bool) (string, error)

func ConfigSet

func ConfigSet(key, value, executablePath string, jsonInput bool) error

func Info

func Info(executablePath string) (string, error)

func RunCustomCmd

func RunCustomCmd(args []string, executablePath string) error

func Version

func Version(executablePath string) (string, error)

Types

type YarnConfig

type YarnConfig struct {
	Executable   string
	Command      []string
	CommandFlags []string
	StrWriter    io.WriteCloser
	ErrWriter    io.WriteCloser
}

func (*YarnConfig) GetCmd

func (yc *YarnConfig) GetCmd() *exec.Cmd

func (*YarnConfig) GetEnv

func (yc *YarnConfig) GetEnv() map[string]string

func (*YarnConfig) GetErrWriter

func (yc *YarnConfig) GetErrWriter() io.WriteCloser

func (*YarnConfig) GetStdWriter

func (yc *YarnConfig) GetStdWriter() io.WriteCloser

Jump to

Keyboard shortcuts

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