Sha256: 5a647b82dc146de57ff974c9e7259c3a82d16f90c462a1239a20ed1ae30cc67c
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
module Klipbook module Commands class List < Command def run_command!(book_source, _options) books = book_source.books if books.empty? logger.info 'No books available' else logger.info 'Book list:' books.each_with_index do |book, index| logger.info "[#{index + 1}] #{book.title_and_author}" end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
klipbook-4.0.0 | lib/klipbook/commands/list.rb |
klipbook-3.0.0 | lib/klipbook/commands/list.rb |