From a8c1c0c8412d8a1e6b64c15afeec198b8f21bcc9 Mon Sep 17 00:00:00 2001 From: Mohammad Zain Abbas Date: Wed, 27 Jul 2022 18:19:14 +0200 Subject: [PATCH] Updated description for resource's option in livecheck command --- Library/Homebrew/dev-cmd/livecheck.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Library/Homebrew/dev-cmd/livecheck.rb b/Library/Homebrew/dev-cmd/livecheck.rb index 94cd1b3527..966cd75a4f 100644 --- a/Library/Homebrew/dev-cmd/livecheck.rb +++ b/Library/Homebrew/dev-cmd/livecheck.rb @@ -36,7 +36,7 @@ module Homebrew switch "--json", description: "Output information in JSON format." switch "-r", "--resources", - description: "Check resources with livecheck blocks." + description: "Check resources with livecheck blocks for a given formulae/casks." switch "-q", "--quiet", description: "Suppress warnings, don't print a progress bar for JSON output." switch "--formula", "--formulae", @@ -69,10 +69,6 @@ module Homebrew formulae = args.cask? ? [] : Formula.installed casks = args.formula? ? [] : Cask::Caskroom.casks formulae + casks - # elsif args.resources? - # # formula_with_resources = Formula.all.select { |formula| formula.resources.any? } - # formula_with_resources = Formula.all.select { |formula| formula.resources.any? { |resource| resource.livecheckable? } } - # formula_with_resources elsif args.all? formulae = args.cask? ? [] : Formula.all casks = args.formula? ? [] : Cask::Cask.all @@ -100,11 +96,6 @@ module Homebrew raise UsageError, "A watchlist file is required when no arguments are given." end - # p package_and_resource_to_check.class - # p package_and_resource_to_check.length - # p package_and_resource_to_check[0].class - # p package_and_resource_to_check.map { |d| d.name } - package_and_resource_to_check = package_and_resource_to_check.sort_by do |package_or_resource| package_or_resource.respond_to?(:token) ? package_or_resource.token : package_or_resource.name end