Raxol.Commands.CloseTerminalCommand (Raxol v2.0.1)

View Source

Command to close a terminal and clean up resources.

Summary

Functions

Creates a new command with validation.

Types

close_reason()

@type close_reason() :: :user_request | :timeout | :error | :system_shutdown

t()

@type t() :: %Raxol.Commands.CloseTerminalCommand{
  command_id: String.t(),
  correlation_id: String.t(),
  expected_version: integer(),
  metadata: map(),
  reason: close_reason(),
  save_session: boolean(),
  terminal_id: String.t(),
  timestamp: integer(),
  user_id: String.t()
}

Functions

new(attrs)

Creates a new command with validation.

validate(command)