Class: RubyEventStore::CLI::Commands::Trace
- Defined in:
- lib/ruby_event_store/cli/commands/trace.rb
Instance Method Summary collapse
Instance Method Details
#call(correlation_id:) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ruby_event_store/cli/commands/trace.rb', line 14 def call(correlation_id:, **) events = events_for(correlation_id) if events.empty? puts "(no events found for correlation ID #{correlation_id})" return end print_causation_tree(events) rescue => e warn e. exit 1 end |