2016-04-19 03:04:49 +02:00
|
|
|
#: * `--version`:
|
|
|
|
#: Print the version number of Homebrew to standard output and exit.
|
|
|
|
|
|
|
|
module Homebrew
|
2016-09-26 01:44:51 +02:00
|
|
|
module_function
|
|
|
|
|
2016-04-19 03:04:49 +02:00
|
|
|
def __version
|
2018-05-16 17:33:40 +02:00
|
|
|
odie "This command does not take arguments." if ARGV.any?
|
|
|
|
|
|
|
|
puts "Homebrew #{HOMEBREW_VERSION}"
|
2018-09-06 06:07:43 +02:00
|
|
|
puts "#{CoreTap.instance.full_name} #{CoreTap.instance.version_string}"
|
|
|
|
puts "#{Tap.default_cask_tap.full_name} #{Tap.default_cask_tap.version_string}" if Tap.default_cask_tap.installed?
|
2016-04-19 03:04:49 +02:00
|
|
|
end
|
|
|
|
end
|