Class: CLAide::Command::Plugins::List
- Inherits:
-
CLAide::Command::Plugins
- Object
- CLAide::Command
- CLAide::Command::Plugins
- CLAide::Command::Plugins::List
- Defined in:
- lib/claide/command/plugins/list.rb
Overview
The list subcommand. Used to list all known plugins
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.description ⇒ Object
11 12 13 14 |
# 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 ⇒ Object
16 17 18 |
# File 'lib/claide/command/plugins/list.rb', line 16 def self. super.reject { |option, _| option == '--silent' } end |
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# 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 |