| 
									
										
										
										
											2024-07-14 14:33:57 -04:00
										 |  |  | # typed: strict | 
					
						
							|  |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require "abstract_command" | 
					
						
							| 
									
										
										
										
											2024-07-15 11:39:34 -04:00
										 |  |  | require "shell_command" | 
					
						
							| 
									
										
										
										
											2024-07-14 14:33:57 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | module Homebrew | 
					
						
							|  |  |  |   module Cmd | 
					
						
							|  |  |  |     class Repository < AbstractCommand | 
					
						
							| 
									
										
										
										
											2024-07-15 11:39:34 -04:00
										 |  |  |       include ShellCommand | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-14 14:33:57 -04:00
										 |  |  |       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 |