lib/pennyworth/cli.rb in pennyworth-9.3.0 vs lib/pennyworth/cli.rb in pennyworth-9.4.0

- old
+ new

@@ -56,22 +56,20 @@ method_option :size, aliases: "-s", desc: "Calculate string size.", type: :boolean, default: false - # rubocop:disable Metrics/PerceivedComplexity def string value if options.downcase? then say value.downcase elsif options.upcase? then say value.upcase elsif options.titleize? then say value.titleize elsif options.camelcase? then say value.camelcase elsif options.snakecase? then say value.snakecase elsif options.size? then say value.size else say "Type 'pennyworth help string' for usage." end end - # rubocop:enable Metrics/PerceivedComplexity desc "-i, [--install]", "Install Alfred Workflows." map %w[-i --install] => :install def install say @@ -79,9 +77,10 @@ alfred_settings_root = self.class.configuration.to_h[:alfred_settings_root] if valid_file? alfred_settings_root, "Invalid directory for Alfred settings root" if yes? "Installing Alfred Workflows will destroy exiting, identical, workflows. " \ "Continue (y/n)?" + say_status :info, "Installing Alfred Workflows...", :green workflows = Dir.glob File.join(self.class.source_root, "workflows", "**") alfred_workflows_root = File.join alfred_settings_root, "workflows" workflows.each do |workflow|