cli

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess         = 0
	ExitGeneralError    = 1
	ExitProjectFile     = 2
	ExitNetworkError    = 3
	ExitFilesystemError = 4
	ExitComposerError   = 5
)

Variables

This section is empty.

Functions

func Execute

func Execute() error

func FormatBinarySize

func FormatBinarySize(bytes int64) string

FormatBinarySize formats bytes into human-readable binary units.

func FormatCommaThousands

func FormatCommaThousands(n int) string

FormatCommaThousands formats an integer with comma-separated thousands.

func IsColorEnabled

func IsColorEnabled() bool

IsColorEnabled resolves: --no-color > NO_COLOR env > config > default (true).

func IsDevMode

func IsDevMode() bool

IsDevMode resolves: --dev flag > --no-dev flag > ALLEGRO_NO_DEV env > config > default (true).

func IsForce

func IsForce() bool

IsForce returns true if --force flag is set.

func IsFrozenLockfile

func IsFrozenLockfile() bool

IsFrozenLockfile returns true if --frozen-lockfile flag is set.

func IsNoScripts

func IsNoScripts() bool

IsNoScripts resolves: --no-scripts > ALLEGRO_NO_SCRIPTS env > config > default (false).

func IsQuiet

func IsQuiet() bool

IsQuiet returns true if non-error output should be suppressed.

func IsTTY

func IsTTY() bool

IsTTY returns true if stdout is a terminal.

func IsVerbose

func IsVerbose() bool

IsVerbose returns true if verbose output should be shown.

func PrintDiff

func PrintDiff(diff orchestrator.PackageDiff)

PrintDiff prints a colored package diff to stdout.

func ResolveLinkStrategy

func ResolveLinkStrategy() string

ResolveLinkStrategy returns the forced link strategy or empty string.

func ResolveWorkers

func ResolveWorkers() int

ResolveWorkers returns the effective worker count with clamping.

func SetVersionInfo

func SetVersionInfo(version, commit, buildDate string)

func ShouldShowProgress

func ShouldShowProgress() bool

ShouldShowProgress returns true if progress bars should be shown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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