env_config: Tighten hash types some more
Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
		
							parent
							
								
									fdb661e2b9
								
							
						
					
					
						commit
						6ad0ebd5b4
					
				@ -8,7 +8,7 @@ module Homebrew
 | 
			
		||||
  module Cmd
 | 
			
		||||
    class CleanupCmd < AbstractCommand
 | 
			
		||||
      cmd_args do
 | 
			
		||||
        days = Homebrew::EnvConfig::ENVS[:HOMEBREW_CLEANUP_MAX_AGE_DAYS][:default]
 | 
			
		||||
        days = Homebrew::EnvConfig::ENVS[:HOMEBREW_CLEANUP_MAX_AGE_DAYS]&.dig(:default)
 | 
			
		||||
        description <<~EOS
 | 
			
		||||
          Remove stale lock files and outdated downloads for all formulae and casks,
 | 
			
		||||
          and remove old versions of installed formulae. If arguments are specified,
 | 
			
		||||
 | 
			
		||||
@ -477,7 +477,7 @@ module Homebrew
 | 
			
		||||
        description: "A comma-separated list of hostnames and domain names excluded " \
 | 
			
		||||
                     "from proxying by `curl`(1), `git`(1) and `svn`(1) when downloading through Homebrew.",
 | 
			
		||||
      },
 | 
			
		||||
    }.freeze, T::Hash[Symbol, T.untyped])
 | 
			
		||||
    }.freeze, T::Hash[Symbol, T::Hash[Symbol, T.untyped]])
 | 
			
		||||
 | 
			
		||||
    sig { params(env: Symbol, hash: T::Hash[Symbol, T.untyped]).returns(String) }
 | 
			
		||||
    def env_method_name(env, hash)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user