Class: Discogs::Wishlist::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/discogs/wishlist.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/discogs/wishlist.rb', line 25

def self.exit_on_failure?
  true
end

Instance Method Details



17
18
19
20
21
22
23
# File 'lib/discogs/wishlist.rb', line 17

def print(username)
  Commands::Wishlist.new(
    username: username,
    for_sale: options[:for_sale],
    country_code: options[:country_code]
  ).perform
end