diff options
| author | Adam Smith | 2017-09-27 00:17:47 -0700 |
|---|---|---|
| committer | Adam Smith | 2017-09-30 18:25:12 -0700 |
| commit | 92311901c9d85e0e43147386535118b66ca718cd (patch) | |
| tree | fc87fcca3515b415b94c001f8e9e6eac5d3c9d93 /Library/Homebrew/cask/lib/hbc/cli/info.rb | |
| parent | a1140f7b926ce7b87727a6cd105cbe2d788f3a4c (diff) | |
| download | brew-92311901c9d85e0e43147386535118b66ca718cd.tar.bz2 | |
add available languages to cask info command
add language tests for dsl
add fixtures, tests for languages info output
add extra lines
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli/info.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/info.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/info.rb b/Library/Homebrew/cask/lib/hbc/cli/info.rb index 9cdada62e..2b4db9530 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/info.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/info.rb @@ -23,6 +23,7 @@ module Hbc installation_info(cask) repo_info(cask) name_info(cask) + language_info(cask) artifact_info(cask) Installer.print_caveats(cask) end @@ -51,6 +52,13 @@ module Hbc puts cask.name.empty? ? Formatter.error("None") : cask.name end + def self.language_info(cask) + return if cask.languages.empty? + + ohai "Languages" + puts cask.languages.join(", ") + end + def self.repo_info(cask) user, repo, token = QualifiedToken.parse(Hbc.all_tokens.detect { |t| t.split("/").last == cask.token }) |
