Documentation ¶
Index ¶
- Constants
- func GetYarnAuthDetails(server *config.ServerDetails, repo string) (string, string, error)
- func ModifyYarnConfigurations(execPath, registry, npmAuthIdent string) (map[string]*string, error)
- func RestoreConfigurationsAndError(envVarsBackup map[string]*string, restoreNpmrcFunc func() error, err error) 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" )
Variables ¶
This section is empty.
Functions ¶
func GetYarnAuthDetails ¶ added in v2.29.8
func ModifyYarnConfigurations ¶ added in v2.29.8
func RestoreConfigurationsAndError ¶ 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() 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.