Sha256: cb62bff92d6969380cd3ece0f94da42afeecb05e6103308616d4d26761915729

Contents?: true

Size: 578 Bytes

Versions: 168

Compression:

Stored size: 578 Bytes

Contents

# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter

module Inspec
  module Plugins
    # stores all CLI plugin, we expect those to the `Thor` subclasses
    class CLI
      def self.subcommands
        @subcommands ||= {}
      end

      def self.add_subcommand(klass, subcommand_name, usage, description, options = {})
        subcommands[subcommand_name] = {
          klass: klass,
          subcommand_name: subcommand_name,
          usage: usage,
          description: description,
          options: options,
        }
      end
    end
  end
end

Version data entries

168 entries across 168 versions & 2 rubygems

Version Path
inspec-core-2.2.61 lib/inspec/plugins/cli.rb
inspec-2.2.61 lib/inspec/plugins/cli.rb
inspec-core-2.2.55 lib/inspec/plugins/cli.rb
inspec-2.2.55 lib/inspec/plugins/cli.rb
inspec-core-2.2.54 lib/inspec/plugins/cli.rb
inspec-2.2.54 lib/inspec/plugins/cli.rb
inspec-core-2.2.50 lib/inspec/plugins/cli.rb
inspec-2.2.50 lib/inspec/plugins/cli.rb
inspec-core-2.2.41 lib/inspec/plugins/cli.rb
inspec-2.2.41 lib/inspec/plugins/cli.rb
inspec-core-2.2.35 lib/inspec/plugins/cli.rb
inspec-2.2.35 lib/inspec/plugins/cli.rb
inspec-core-2.2.34 lib/inspec/plugins/cli.rb
inspec-2.2.34 lib/inspec/plugins/cli.rb
inspec-core-2.2.27 lib/inspec/plugins/cli.rb
inspec-2.2.27 lib/inspec/plugins/cli.rb
inspec-core-2.2.20 lib/inspec/plugins/cli.rb
inspec-2.2.20 lib/inspec/plugins/cli.rb
inspec-core-2.2.16 lib/inspec/plugins/cli.rb
inspec-2.2.16 lib/inspec/plugins/cli.rb