Class: Taski::Progress::Layout::Tree::Event

Inherits:
Base show all
Includes:
Structure
Defined in:
lib/taski/progress/layout/tree/event.rb

Overview

Non-TTY event-driven tree layout. Outputs lines immediately with tree prefixes as events arrive. Used for logs, CI, piped output, and static tree display.

Constant Summary

Constants included from Structure

Structure::BRANCH, Structure::LAST_BRANCH, Structure::SPACE, Structure::VERTICAL

Instance Attribute Summary

Attributes inherited from Base

#spinner_index

Attributes inherited from Execution::TaskObserver

#context

Instance Method Summary collapse

Methods included from Structure

#render_tree

Methods inherited from Base

#on_group_completed, #on_group_started, #on_ready, #on_start, #on_stop, #on_task_updated, #queue_message, #render_template_string, #start_spinner_timer, #stop_spinner_timer, #task_registered?, #task_state

Methods inherited from Execution::TaskObserver

#on_group_completed, #on_group_started, #on_ready, #on_start, #on_stop, #on_task_updated

Constructor Details

#initialize(output: $stderr, theme: nil) ⇒ Event

Returns a new instance of Event.



17
18
19
20
21
# File 'lib/taski/progress/layout/tree/event.rb', line 17

def initialize(output: $stderr, theme: nil)
  theme ||= Theme::Detail.new
  super
  init_tree_structure
end