Merge pull request #16743 from bevanjkay/cask-disable-reasons
This commit is contained in:
		
						commit
						c6d959218f
					
				@ -23,7 +23,9 @@ module DeprecateDisable
 | 
			
		||||
  }.freeze
 | 
			
		||||
 | 
			
		||||
  CASK_DEPRECATE_DISABLE_REASONS = {
 | 
			
		||||
    discontinued: "is discontinued upstream",
 | 
			
		||||
    discontinued:        "is discontinued upstream",
 | 
			
		||||
    no_longer_available: "is no longer available upstream",
 | 
			
		||||
    unmaintained:        "is not maintained upstream",
 | 
			
		||||
  }.freeze
 | 
			
		||||
 | 
			
		||||
  def type(formula_or_cask)
 | 
			
		||||
 | 
			
		||||
@ -75,6 +75,8 @@ When a cask is deprecated or disabled, a reason explaining the action must be pr
 | 
			
		||||
There are two ways to indicate the reason. The preferred way is to use a pre-existing symbol to indicate the reason. The available symbols are listed below and can be found in the [`DeprecateDisable` module](https://github.com/Homebrew/brew/blob/master/Library/Homebrew/deprecate_disable.rb):
 | 
			
		||||
 | 
			
		||||
- `:discontinued`: the cask is discontinued upstream
 | 
			
		||||
- `:no_longer_available`: the cask is no longer available upstream
 | 
			
		||||
- `:unmaintained`: the cask is not maintained upstream
 | 
			
		||||
 | 
			
		||||
These reasons can be specified by their symbols (the comments show the message that will be displayed to users):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user