Class: RubyEventStore::CLI::Commands::StreamShow

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_event_store/cli/commands/stream_show.rb

Instance Method Summary collapse

Instance Method Details

#call(stream_name:) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/ruby_event_store/cli/commands/stream_show.rb', line 14

def call(stream_name:, **)
  specification = event_store.read.stream(stream_name)
  print_stream(stream_name, specification)
rescue => e
  warn e.message
  exit 1
end