list

package
v3.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoBinariesInstalled reports a scope without installed binaries.
	ErrNoBinariesInstalled = errors.New(
		"there are no binaries installed in the selected scope",
	)
)

Functions

func ListBinaries

func ListBinaries(listCtx ListCtx) error

ListBinaries outputs installed versions from exactly the selected scope.

func ParseBinaries

func ParseBinaries(fileList []fs.DirEntry, program binary.Program,
	root string,
) ([]version.Version, error)

ParseBinaries reads installed executables from the selected product's version entries. Str preserves the exact installation suffix, followed by an optional active marker.

Types

type ListCtx

type ListCtx struct {
	binary.BinaryContext
}

ListCtx contains the options for listing installed binaries.

Jump to

Keyboard shortcuts

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