yarn

package
v2.56.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	YarnrcFileName       = ".yarnrc.yml"
	YarnrcBackupFileName = "jfrog.yarnrc.backup"
	NpmScopesConfigName  = "npmScopes"
	YarnLockFileName     = "yarn.lock"
)

Variables

This section is empty.

Functions

func GetYarnAuthDetails added in v2.29.8

func GetYarnAuthDetails(server *config.ServerDetails, repo string) (registry, npmAuthIdent, npmAuthToken string, err error)

func ModifyYarnConfigurations added in v2.29.8

func ModifyYarnConfigurations(execPath, registry, npmAuthIdent, npmAuthToken string) (map[string]*string, error)

func RestoreConfigurationsFromBackup added in v2.29.8

func RestoreConfigurationsFromBackup(envVarsBackup map[string]*string, restoreYarnrcFunc func() error) error

Types

type YarnCommand

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

func NewYarnCommand

func NewYarnCommand() *YarnCommand

func (*YarnCommand) CommandName

func (yc *YarnCommand) CommandName() string

func (*YarnCommand) Run

func (yc *YarnCommand) Run() (err error)

func (*YarnCommand) ServerDetails

func (yc *YarnCommand) ServerDetails() (*config.ServerDetails, error)

func (*YarnCommand) SetArgs

func (yc *YarnCommand) SetArgs(args []string) *YarnCommand

func (*YarnCommand) SetConfigFilePath

func (yc *YarnCommand) SetConfigFilePath(configFilePath string) *YarnCommand

Jump to

Keyboard shortcuts

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