toolset

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiToolVersions

type MultiToolVersions []*ToolVersion

func NewMultiToolVersions

func NewMultiToolVersions(paths []string) (MultiToolVersions, error)

func (MultiToolVersions) Add

func (m MultiToolVersions) Add(name, version string)

func (MultiToolVersions) FilterTools

func (m MultiToolVersions) FilterTools(filter func(name, version string) bool) map[string]string

FilterTools filters tools by the given filter function and return the first one you find.

func (MultiToolVersions) Save

func (m MultiToolVersions) Save() error

type ToolVersion

type ToolVersion struct {
	// Sdks sdkName -> version
	Record map[string]string
	// contains filtered or unexported fields
}

func NewToolVersion

func NewToolVersion(dirPath string) (*ToolVersion, error)

func (*ToolVersion) Save

func (t *ToolVersion) Save() error

Jump to

Keyboard shortcuts

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