summary

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int

Action represents the action taken for an installer.

const (
	// ActionSkipped indicates the installer was skipped (platform/machine/filter mismatch).
	ActionSkipped Action = iota
	// ActionUpToDate indicates the software was already installed and up-to-date.
	ActionUpToDate
	// ActionInstalled indicates the software was newly installed.
	ActionInstalled
	// ActionUpgraded indicates the software was upgraded.
	ActionUpgraded
)

type InstallResult

type InstallResult struct {
	// Name is the name of the installer.
	Name string
	// Type is the installer type (e.g., "brew", "npm", "group").
	Type string
	// Action is the action that was taken.
	Action Action
	// Children contains results from nested installers (for group/manifest).
	Children []InstallResult
	// SkipSummaryInstall indicates whether to exclude this from install summary.
	SkipSummaryInstall bool
	// SkipSummaryUpdate indicates whether to exclude this from update summary.
	SkipSummaryUpdate bool
}

InstallResult represents the result of running an installer.

type Summary

type Summary struct {
	// contains filtered or unexported fields
}

Summary collects installation results for final reporting.

func NewSummary

func NewSummary() *Summary

NewSummary creates a new Summary instance.

func (*Summary) Add

func (s *Summary) Add(result InstallResult)

Add adds an installation result to the summary.

func (*Summary) Print

func (s *Summary) Print()

Print outputs the summary to the logger.

Jump to

Keyboard shortcuts

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