mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
24 lines
500 B
Ruby
24 lines
500 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
require "abstract_command"
|
|
require "shell_command"
|
|
|
|
module Homebrew
|
|
module Cmd
|
|
class Version < AbstractCommand
|
|
include ShellCommand
|
|
|
|
sig { override.returns(String) }
|
|
def self.command_name = "--version"
|
|
|
|
cmd_args do
|
|
description <<~EOS
|
|
Print the version numbers of Homebrew, Homebrew/homebrew-core and
|
|
Homebrew/homebrew-cask (if tapped) to standard output.
|
|
EOS
|
|
end
|
|
end
|
|
end
|
|
end
|