✨ ARCANUM RUNE DIFFICULTY: Apprentice Behavioral

Encapsulated TSO Command

Encapsulate a TSO command as an object for delayed execution.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Command
ARCANUM SCHOOL: Enchantment // Binding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
/* ooRexx Command */
::class TSOCommand
::attribute cmdStr
::method init
  use arg cmd
  self~cmdStr = cmd
::method execute
  say "Address TSO:" self~cmdStr

::class Invoker
::attribute history
::method init
  self~history = .array~new()
::method storeAndExecute
  use arg command
  self~history~append(command)
  command~execute()

By binding a raw TSO string into a Command object, the invocation can be queued, logged, or reversed by the master script.

Runic Tags: #command #tso #rexx