Documentation ¶
Index ¶
- Variables
- func ComapreName[T, U Namer](self T, other U) int
- func EncodeManifest(writer io.Writer, manifest *Manifest) error
- func EncodeManifestLock(writer io.Writer, manifest *ManifestLock) error
- func SortNamers[S ~[]E, E Namer](namers S) error
- func ToPackage(path string, version *semver.Version) string
- type Constraints
- type Manifest
- type ManifestLock
- type ManifestLockTool
- type ManifestTool
- type Namer
- type Tool
- type ToolPath
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRequreViersionFiled = errors.New("require version field") ErrEnvFieldMustStringSlice = errors.New("env field must string slice") ErrUnknownToolType = errors.New("unknown tool type") ErrDuplicateBinaryName = errors.New("duplicate binary name") )
View Source
var ErrDuplicatePath = errors.New("duplicate path")
Functions ¶
func ComapreName ¶
func EncodeManifestLock ¶
func EncodeManifestLock(writer io.Writer, manifest *ManifestLock) error
func SortNamers ¶
Types ¶
type Constraints ¶
type Constraints struct { semver.Constraints // contains filtered or unexported fields }
func NewConstraints ¶
func NewConstraints(text string) (*Constraints, error)
func NewReferenceConstraintsWithVersion ¶
func NewReferenceConstraintsWithVersion(text string) (*Constraints, error)
func (*Constraints) IsReference ¶
func (constraints *Constraints) IsReference() bool
func (*Constraints) MarshalText ¶
func (constraints *Constraints) MarshalText() ([]byte, error)
func (*Constraints) UnmarshalText ¶
func (constraints *Constraints) UnmarshalText(text []byte) error
type Manifest ¶
type Manifest struct {
Tools []ManifestTool
}
type ManifestLock ¶
type ManifestLock struct {
Tools []ManifestLockTool `toml:"tools,omitempty"`
}
func DecodeManifestLock ¶
func DecodeManifestLock(reader io.Reader) (*ManifestLock, error)
type ManifestLockTool ¶
type ManifestTool ¶
type ManifestTool struct { ToolPath Version Constraints Tool }
func ParseArgument ¶
func ParseArgument(command *gocommand.Memorized, text string) (ManifestTool, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.