Class: RubyEventStore::CLI::Commands::EventStreams
- Defined in:
- lib/ruby_event_store/cli/commands/event_streams.rb
Instance Method Summary collapse
Instance Method Details
#call(event_id:) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/ruby_event_store/cli/commands/event_streams.rb', line 14 def call(event_id:, **) streams = streams_of(event_id) streams.empty? ? puts("(no streams — event not found or not linked to any stream)") : streams.each { |stream| puts stream.name } rescue => e warn e. exit 1 end |