Sha256: 7464bc171b9bf37ffd926788f14b8e865d0b4ece0534e064b5bb0bef86c0d738

Contents?: true

Size: 716 Bytes

Versions: 4

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

require 'thor'
require_relative '../plugin/plugin'

module RubyRaider
  # :reek:FeatureEnvy { enabled: false }
  # :reek:UtilityFunction { enabled: false }
  class PluginCommands < Thor
    desc 'add [NAME]', 'Adds a plugin to your project'

    def add(plugin_name)
      Plugin.add_plugin(plugin_name)
    end

    desc 'delete [NAME]', 'Deletes a plugin from your project'

    def delete(plugin_name)
      Plugin.delete_plugin(plugin_name)
    end

    desc 'local', 'Lists all the plugin in your project'

    def local
      pp Plugin.installed_plugins
    end

    desc 'list', 'Lists all the available plugin'

    def list
      pp Plugin.available_plugins
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby_raider-0.9.9 lib/commands/plugin_commands.rb
ruby_raider-0.9.8 lib/commands/plugin_commands.rb
ruby_raider-0.9.7 lib/commands/plugin_commands.rb
ruby_raider-0.9.6 lib/commands/plugin_commands.rb