class
Crowbar::TUI::ReviewerModel
- Crowbar::TUI::ReviewerModel
- Reference
- Object
Overview
Interactive Terminal User Interface for reviewing session items, inspecting side-by-side hex diffs, examining transformation provenance, and applying deferred rewards to any past iteration.
Included Modules
- Opal::TEA::Model
Defined in:
crowbar/tui/reviewer.crConstructors
Instance Method Summary
- #active_tab : Int32
- #active_tab=(active_tab : Int32)
- #current_selected_item : SessionItem | Nil
- #diff_mode : Symbol
- #diff_mode=(diff_mode : Symbol)
- #filter_mode : Symbol
- #filter_mode=(filter_mode : Symbol)
- #filtered_items : Array(SessionItem)
- #height : Int32
- #height=(height : Int32)
-
#init : Opal::TEA::Cmd
Returns initial commands to execute upon application startup.
- #reward_buffer : String
- #reward_buffer=(reward_buffer : String)
- #reward_mode : Bool
- #reward_mode=(reward_mode : Bool)
- #selected_index : Int32
- #selected_index=(selected_index : Int32)
- #session : Session
- #session_dir : String
- #session_dir=(session_dir : String)
- #status_message : String | Nil
- #status_message=(status_message : String | Nil)
-
#update(msg : Opal::TEA::Msg) : Tuple(Opal::TEA::Model, Opal::TEA::Cmd)
Updates the model state based on an incoming message, returning the new model and optional command.
-
#view : String
Renders the current state as a formatted terminal string.
- #width : Int32
- #width=(width : Int32)
Constructor Detail
def self.new(session : Session, session_dir : String = Session.default_dir, width : Int32 = 100, height : Int32 = 28)
#
Instance Method Detail
def init : Opal::TEA::Cmd
#
Description copied from module Opal::TEA::Model
Returns initial commands to execute upon application startup.
def update(msg : Opal::TEA::Msg) : Tuple(Opal::TEA::Model, Opal::TEA::Cmd)
#
Description copied from module Opal::TEA::Model
Updates the model state based on an incoming message, returning the new model and optional command.
def view : String
#
Description copied from module Opal::TEA::Model
Renders the current state as a formatted terminal string.