yarn

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

type YarnDepDetails

type YarnDepDetails struct {
	Version      string                  `json:"Version,omitempty"`
	Dependencies []YarnDependencyPointer `json:"Dependencies,omitempty"`
}

type YarnDependency

type YarnDependency struct {
	// The value is usually in this structure: @scope/package-name@npm:1.0.0
	Value   string         `json:"value,omitempty"`
	Details YarnDepDetails `json:"children,omitempty"`
}

func (*YarnDependency) Name

func (yd *YarnDependency) Name() string

type YarnDependencyPointer

type YarnDependencyPointer struct {
	Descriptor string `json:"descriptor,omitempty"`
	Locator    string `json:"locator,omitempty"`
}

Jump to

Keyboard shortcuts

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