Class: AudioFeedManager::ListFeeds

Inherits:
Command
  • Object
show all
Defined in:
lib/audio_feed_manager/cli/list_feeds.rb

Instance Method Summary collapse

Methods inherited from Command

arguments, #arguments, arguments_specification

Instance Method Details

#run(_ = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/audio_feed_manager/cli/list_feeds.rb', line 10

def run(_ = {})
  feeds = feed_repository.list

  if feeds.empty?
    print_no_feeds_message
  else
    print_feeds(feeds)
  end
end