ACPex.Schema.Types.TerminalExitStatus (ACPex v0.1.1)

Copy Markdown View Source

Terminal exit status information.

Contains information about how a terminal process exited, including exit code and/or termination signal.

Optional Fields

  • exit_code - The exit code (integer, 0 or greater)
  • signal - The signal that terminated the process (string)
  • meta - Additional metadata (map)

Note: At least one of exit_code or signal is typically present.

Example

%ACPex.Schema.Types.TerminalExitStatus{
  exit_code: 0,
  signal: nil
}

JSON Representation

{
  "exitCode": 0,
  "signal": null
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Types.TerminalExitStatus{
  exit_code: integer() | nil,
  meta: map() | nil,
  signal: String.t() | nil
}

Functions

changeset(struct \\ %__MODULE__{}, params)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Creates a changeset for validation.

Optional Fields

  • exit_code - If present, must be >= 0
  • signal - Optional signal string