enum

Fluxion::CLI::ExitCode

Inherits Enum < Comparable < Value < Object

Exit codes are part of Fluxion's interface: scripts branch on them, and CI decides whether a bootstrap step passed. They are therefore fixed, and distinguish why something failed rather than only that it did.

Constants

Success = 0
GeneralFailure = 1

An unexpected failure. Anything landing here is a bug rather than a situation Fluxion knows how to describe.

InvalidInput = 2

Bad arguments, or a selector that matches nothing.

ConfigurationError = 3

The profile could not be loaded or did not validate.

IoError = 4

A local filesystem or stream failure.

ExternalDependencyError = 5

Something outside Fluxion failed: a package manager, a download, a required command that is missing.

Paused = 75

Stopped at an explicit checkpoint. Not a failure — the run did exactly what the profile asked — so it is distinct from every error code, and a profile may choose its own value here.

Cancelled = 130

Stopped at a safe boundary after the user interrupted. Follows the shell convention of 128 + SIGINT.

Instance methods

cancelled?

Returns true if this enum value equals Cancelled

Source
configuration_error?

Returns true if this enum value equals ConfigurationError

Source
external_dependency_error?

Returns true if this enum value equals ExternalDependencyError

Source
general_failure?

Returns true if this enum value equals GeneralFailure

Source
invalid_input?

Returns true if this enum value equals InvalidInput

Source
io_error?

Returns true if this enum value equals IoError

Source
paused?

Returns true if this enum value equals Paused

Source
success?

Returns true if this enum value equals Success

Source