Documentation ¶
Index ¶
- Constants
- func GetYarnAuthDetails(server *config.ServerDetails, repo string) (registry, npmAuthIdent, npmAuthToken string, err error)
- func ModifyYarnConfigurations(execPath, registry, npmAuthIdent, npmAuthToken string) (map[string]*string, error)
- func RestoreConfigurationsFromBackup(envVarsBackup map[string]*string, restoreYarnrcFunc func() error) error
- type YarnCommand
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
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
Click to show internal directories.
Click to hide internal directories.