Method: Mj::AlternativeFile::ThorCommand#list

Defined in:
lib/mj/alternative_file/thor_command.rb

#list(reference_file) ⇒ Object



26
27
28
29
30
31
# File 'lib/mj/alternative_file/thor_command.rb', line 26

def list(reference_file)
  handler = Commands::ListCommandHandler.new(resolvers: self.class.resolvers)
  command = Commands::ListCommand.new(reference_file, options)
  candidates = handler.handle(command)
  print_candidates(candidates)
end