class CLAide::Command::Plugins::List
The list subcommand. Used to list all known plugins
Public Class Methods
description()
click to toggle source
# File lib/claide/command/plugins/list.rb, line 11 def self.description "List all known plugins (according to the list hosted on #{ CLAide::Plugins.config.plugin_list_url })" end
options()
click to toggle source
Calls superclass method
# File lib/claide/command/plugins/list.rb, line 16 def self.options super.reject { |option, _| option == '--silent' } end
Public Instance Methods
run()
click to toggle source
# File lib/claide/command/plugins/list.rb, line 20 def run plugins = PluginsHelper.known_plugins GemHelper.download_and_cache_specs if self.verbose? name = CLAide::Plugins.config.name UI.title "Available #{name} Plugins:" do plugins.each do |plugin| PluginsHelper.print_plugin plugin, self.verbose? end end end