Documentation
¶
Index ¶
- Constants
- func Execute() error
- func FormatBinarySize(bytes int64) string
- func FormatCommaThousands(n int) string
- func IsColorEnabled() bool
- func IsDevMode() bool
- func IsForce() bool
- func IsFrozenLockfile() bool
- func IsNoScripts() bool
- func IsQuiet() bool
- func IsTTY() bool
- func IsVerbose() bool
- func PrintDiff(diff orchestrator.PackageDiff)
- func ResolveLinkStrategy() string
- func ResolveWorkers() int
- func SetVersionInfo(version, commit, buildDate string)
- func ShouldShowProgress() bool
Constants ¶
const ( ExitSuccess = 0 ExitGeneralError = 1 ExitProjectFile = 2 ExitNetworkError = 3 ExitFilesystemError = 4 ExitComposerError = 5 )
Variables ¶
This section is empty.
Functions ¶
func FormatBinarySize ¶
FormatBinarySize formats bytes into human-readable binary units.
func FormatCommaThousands ¶
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 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 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.