| 
									
										
										
										
											2024-07-15 11:28:39 -04:00
										 |  |  | # typed: strict | 
					
						
							|  |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module Homebrew | 
					
						
							|  |  |  |   module ShellCommand | 
					
						
							|  |  |  |     extend T::Helpers | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     requires_ancestor { AbstractCommand } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     sig { void } | 
					
						
							|  |  |  |     def run | 
					
						
							| 
									
										
										
										
											2024-07-15 15:39:10 -04:00
										 |  |  |       T.bind(self, AbstractCommand) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-15 11:28:39 -04:00
										 |  |  |       sh_cmd_path = "#{self.class.dev_cmd? ? "dev-cmd" : "cmd"}/#{self.class.command_name}.sh" | 
					
						
							|  |  |  |       raise StandardError, | 
					
						
							|  |  |  |             "This command is just here for completions generation. " \ | 
					
						
							|  |  |  |             "It's actually defined in `#{sh_cmd_path}` instead." | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |