Class: Aidp::Interfaces::NullUI

Inherits:
Object
  • Object
show all
Includes:
UiInterface
Defined in:
lib/aidp/interfaces/ui_interface.rb

Overview

NullUI is a no-op implementation. Useful for testing or non-interactive environments.

Constant Summary

Constants included from UiInterface

UiInterface::MESSAGE_TYPES

Instance Method Summary collapse

Instance Method Details

#quiet?Boolean

Returns:

  • (Boolean)


130
131
132
# File 'lib/aidp/interfaces/ui_interface.rb', line 130

def quiet?
  true
end

#say(message, type: :info) ⇒ Object



118
119
120
# File 'lib/aidp/interfaces/ui_interface.rb', line 118

def say(message, type: :info)
  # no-op
end

#spinner(title:) ⇒ Object



126
127
128
# File 'lib/aidp/interfaces/ui_interface.rb', line 126

def spinner(title:)
  NullSpinner.new
end

#with_spinner(title:) ⇒ Object



122
123
124
# File 'lib/aidp/interfaces/ui_interface.rb', line 122

def with_spinner(title:)
  yield
end