Class: Dependabot::CLI::Application

Inherits:
Thor
  • Object
show all
Defined in:
lib/dependabot/cli.rb

Instance Method Summary collapse

Instance Method Details

#scan(path = Pathname.pwd) ⇒ Object



15
16
17
18
# File 'lib/dependabot/cli.rb', line 15

def scan(path = Pathname.pwd)
  Dependabot.logger.level = :debug if options[:verbose]
  ::Dependabot::CLI::Scan.new(path, options).run
end

#versionObject



21
22
23
# File 'lib/dependabot/cli.rb', line 21

def version
  $stdout.puts "v#{Dependabot::VERSION}"
end