brew/Library/Homebrew/cmd/--repository.rb

27 lines
554 B
Ruby
Raw Normal View History

# typed: strict
# frozen_string_literal: true
require "abstract_command"
2024-07-15 11:39:34 -04:00
require "shell_command"
module Homebrew
module Cmd
class Repository < AbstractCommand
2024-07-15 11:39:34 -04:00
include ShellCommand
sig { override.returns(String) }
def self.command_name = "--repository"
cmd_args do
description <<~EOS
Display where Homebrew's Git repository is located.
If <user>`/`<repo> are provided, display where tap <user>`/`<repo>'s directory is located.
EOS
named_args :tap
end
end
end
end