| 
									
										
										
										
											2024-07-14 16:18:26 -04:00
										 |  |  | # typed: strict | 
					
						
							|  |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require "abstract_command" | 
					
						
							| 
									
										
										
										
											2024-07-15 11:39:39 -04:00
										 |  |  | require "shell_command" | 
					
						
							| 
									
										
										
										
											2024-07-14 16:18:26 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | module Homebrew | 
					
						
							|  |  |  |   module Cmd | 
					
						
							|  |  |  |     class Version < AbstractCommand | 
					
						
							| 
									
										
										
										
											2024-07-15 11:39:39 -04:00
										 |  |  |       include ShellCommand | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-14 16:18:26 -04:00
										 |  |  |       sig { override.returns(String) } | 
					
						
							|  |  |  |       def self.command_name = "--version" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       cmd_args do | 
					
						
							|  |  |  |         description <<~EOS | 
					
						
							|  |  |  |           Print the version numbers of Homebrew, Homebrew/homebrew-core and | 
					
						
							|  |  |  |           Homebrew/homebrew-cask (if tapped) to standard output. | 
					
						
							|  |  |  |         EOS | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |