diff options
| author | Alexey Alekhin | 2017-08-23 03:23:33 +0200 |
|---|---|---|
| committer | Alexey Alekhin | 2017-08-23 03:23:33 +0200 |
| commit | 00803b1a0b2a302a84871a05ae2abbdfe7f01a5c (patch) | |
| tree | 367aa564c6e7d594d6274771b90c9dc777695532 /Library | |
| parent | 97c75bfd40084cfa2512fe55a7b292886ff6d023 (diff) | |
| download | brew-00803b1a0b2a302a84871a05ae2abbdfe7f01a5c.tar.bz2 | |
brew cask search without query just outputs all available cask tokens
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/search.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb index e89dced92..42be4592a 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/search.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb @@ -2,8 +2,12 @@ module Hbc class CLI class Search < AbstractCommand def run - results = self.class.search(*args) - self.class.render_results(*results) + if args.empty? + puts Formatter.columns(CLI.nice_listing(Hbc.all_tokens)) + else + results = self.class.search(*args) + self.class.render_results(*results) + end end def self.extract_regexp(string) |
