27 lines
		
	
	
		
			554 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			554 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # typed: strict
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| require "abstract_command"
 | |
| require "shell_command"
 | |
| 
 | |
| module Homebrew
 | |
|   module Cmd
 | |
|     class Repository < AbstractCommand
 | |
|       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
 | 
