mikebom

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package mikebom lazy-installs and invokes a pinned version of MikeBOM (https://github.com/kusari-sandbox/mikebom) as a prerequisite of kusari subcommands that need it.

Index

Constants

View Source
const (
	Version = "0.1.0-alpha.41"
	Repo    = "kusari-sandbox/mikebom"
)
View Source
const EnvBinOverride = "KUSARI_MIKEBOM_BIN"

EnvBinOverride lets a user point at a pre-installed mikebom (air-gapped, local dev builds, test fixtures). When set, the cache + download path is skipped entirely.

View Source
const EnvNoAutoInstall = "KUSARI_NO_AUTO_INSTALL"

EnvNoAutoInstall, when "1", causes EnsureAvailable to error instead of downloading. Useful in CI / regulated environments.

Variables

This section is empty.

Functions

func EnsureAvailable

func EnsureAvailable(ctx context.Context) (string, error)

EnsureAvailable returns the filesystem path to a verified mikebom binary matching the pinned Version, installing it on first use.

func Run

func Run(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) error

Run invokes mikebom with the given args, wiring stdio through. The caller owns flag parsing; everything in args is passed verbatim.

Types

This section is empty.

Jump to

Keyboard shortcuts

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