yarn

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetYarnAuthDetails added in v2.29.8

func GetYarnAuthDetails(server *config.ServerDetails, repo string) (string, string, error)

func ModifyYarnConfigurations added in v2.29.8

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

func RestoreConfigurationsAndError added in v2.29.8

func RestoreConfigurationsAndError(envVarsBackup map[string]*string, restoreNpmrcFunc func() error, err error) 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() 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