Class: Codeowners::CLI::Commands::Contributors

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

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from Codeowners::CLI::Commands::Command

Instance Method Details

#call(file:, base_directory:, format:, debug:) ⇒ Object



83
84
85
86
87
88
# File 'lib/codeowners/cli.rb', line 83

def call(file:, base_directory:, format:, debug:, **)
  result = Codeowners::ListContributors.new(base_directory).call(file, debug)
  exit(1) unless result.successful?

  out.puts output(result, format)
end