Merge pull request #11182 from Rylan12/deprecate-brew-search-casks
search: properly deprecate `brew search --cask`
This commit is contained in:
		
						commit
						844f15edec
					
				@ -60,7 +60,8 @@ module Homebrew
 | 
			
		||||
      conflicts "--open", "--closed"
 | 
			
		||||
      conflicts(*package_manager_switches)
 | 
			
		||||
 | 
			
		||||
      named_args :text_or_regex, min: 1
 | 
			
		||||
      # TODO: (3.2) Add `min: 1` the `named_args` once `brew search --cask` is removed
 | 
			
		||||
      named_args :text_or_regex
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
@ -73,6 +74,12 @@ module Homebrew
 | 
			
		||||
      return
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    if args.no_named?
 | 
			
		||||
      odisabled "`brew search --cask` with no arguments to output casks", "`brew casks`" if args.cask?
 | 
			
		||||
 | 
			
		||||
      raise UsageError, "This command requires at least 1 text or regex argument."
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    query = args.named.join(" ")
 | 
			
		||||
    string_or_regex = query_regexp(query)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -482,7 +482,7 @@ reinstalled formulae or, every 30 days, for all formulae.
 | 
			
		||||
* `--skip-cask-deps`:
 | 
			
		||||
  Skip installing cask dependencies.
 | 
			
		||||
 | 
			
		||||
### `search`, `-S` [*`options`*] *`text`*|`/`*`regex`*`/` [...]
 | 
			
		||||
### `search`, `-S` [*`options`*] [*`text`*|`/`*`regex`*`/` ...]
 | 
			
		||||
 | 
			
		||||
Perform a substring search of cask tokens and formula names for *`text`*. If *`text`*
 | 
			
		||||
is flanked by slashes, it is interpreted as a regular expression.
 | 
			
		||||
 | 
			
		||||
@ -654,7 +654,7 @@ Disable/enable quarantining of downloads (default: enabled)\.
 | 
			
		||||
\fB\-\-skip\-cask\-deps\fR
 | 
			
		||||
Skip installing cask dependencies\.
 | 
			
		||||
.
 | 
			
		||||
.SS "\fBsearch\fR, \fB\-S\fR [\fIoptions\fR] \fItext\fR|\fB/\fR\fIregex\fR\fB/\fR [\.\.\.]"
 | 
			
		||||
.SS "\fBsearch\fR, \fB\-S\fR [\fIoptions\fR] [\fItext\fR|\fB/\fR\fIregex\fR\fB/\fR \.\.\.]"
 | 
			
		||||
Perform a substring search of cask tokens and formula names for \fItext\fR\. If \fItext\fR is flanked by slashes, it is interpreted as a regular expression\. The search for \fItext\fR is extended online to \fBhomebrew/core\fR and \fBhomebrew/cask\fR\.
 | 
			
		||||
.
 | 
			
		||||
.TP
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user