Class: Aidp::Harness::StatusDisplay::StatusFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/aidp/harness/status_display.rb

Overview

Helper classes

Instance Method Summary collapse

Constructor Details

#initializeStatusFormatter

Returns a new instance of StatusFormatter.



769
770
771
# File 'lib/aidp/harness/status_display.rb', line 769

def initialize
  @formatters = {}
end

Instance Method Details

#format_status(status_data, format_type) ⇒ Object



773
774
775
776
777
778
779
780
781
782
783
784
# File 'lib/aidp/harness/status_display.rb', line 773

def format_status(status_data, format_type)
  case format_type
  when :compact
    format_compact_status(status_data)
  when :detailed
    format_detailed_status(status_data)
  when :json
    JSON.pretty_generate(status_data)
  else
    status_data.to_s
  end
end