Sha256: 6425b9725340c465a000f1c02120954354cf007697d309333de4634aa2538853
Contents?: true
Size: 930 Bytes
Versions: 2
Compression:
Stored size: 930 Bytes
Contents
require 'claide/command/plugins_helper' require 'claide/command/gem_helper' module CLAide class Command class Plugins # The list subcommand. Used to list all known plugins # class List < Plugins self.summary = 'List all known plugins' def self.description "List all known plugins (according to the list hosted on #{ CLAide::Plugins.config.plugin_list_url })" end def self.options super.reject { |option, _| option == '--silent' } end 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 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
claide-plugins-0.9.2 | lib/claide/command/plugins/list.rb |
claide-plugins-0.9.1 | lib/claide/command/plugins/list.rb |