2017-03-08 15:49:37 +01:00
|
|
|
module Hbc
|
|
|
|
class CLI
|
2017-05-20 19:08:03 +02:00
|
|
|
class Version < AbstractCommand
|
2017-03-08 15:49:37 +01:00
|
|
|
def self.command_name
|
|
|
|
"--#{super}"
|
|
|
|
end
|
|
|
|
|
2017-05-19 21:15:36 +02:00
|
|
|
def run
|
|
|
|
raise ArgumentError, "#{self.class.command_name} does not take arguments." unless @args.empty?
|
2017-03-08 15:49:37 +01:00
|
|
|
puts Hbc.full_version
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.help
|
|
|
|
"displays the Homebrew-Cask version"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|