-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17728 from Homebrew/sponsors-maintainers-man-comp…
…letions
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
require "abstract_command" | ||
|
||
# This Ruby command exists to allow generation of completions for the Bash | ||
# version. | ||
# It is not meant to be run. | ||
module Homebrew | ||
module Cmd | ||
class Repository < AbstractCommand | ||
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 | ||
|
||
hide_from_man_page! | ||
end | ||
|
||
sig { override.void } | ||
def run | ||
raise StandardError, | ||
"This command is just here for completions generation. " \ | ||
"It's actually defined in `cmd/--repository.sh` instead." | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters