structs

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrToolNotInstalled = errors.New("tool not installed")

Functions

This section is empty.

Types

type ModuleInfo

type ModuleInfo struct {
	Name        string // golangci-lint
	Version     string // v1.61.0
	BinDir      string // /home/user/bin/tools/.golangci-lint__v1.1.1
	BinPath     string // /home/user/bin/tools/.golangci-lint__v1.1.1/golangci-lint
	IsInstalled bool
	IsPrivate   bool
}

type RunError added in v0.15.1

type RunError struct {
	ExitCode int
}

func (*RunError) Error added in v0.15.1

func (e *RunError) Error() string

type Tool

type Tool struct {
	// Name of runtime
	Runtime string `json:"runtime"`
	// Path to module with version
	Module string `json:"module"`
	// Alias create a link in tools. Works like exposing some tools
	Alias optional.Val[string] `json:"alias"`
	Tags  []string             `json:"tags"`
}

func (Tool) ID added in v0.19.0

func (t Tool) ID() string

func (Tool) IsSame

func (t Tool) IsSame(tool Tool) bool

type Tools

type Tools []Tool

func (*Tools) Add

func (tools *Tools) Add(tool Tool) bool

func (*Tools) AddOrUpdateTool

func (tools *Tools) AddOrUpdateTool(tool Tool)

func (*Tools) Filter

func (tools *Tools) Filter(tags []string) Tools

Jump to

Keyboard shortcuts

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