Class: Inspec::Plugins::CLI
- Inherits:
-
Object
- Object
- Inspec::Plugins::CLI
- Defined in:
- lib/inspec/plugin/v1/plugin_types/cli.rb
Overview
stores all CLI plugin, we expect those to the ‘Thor` subclasses
Class Method Summary collapse
- .add_subcommand(klass, subcommand_name, usage, description, options = {}) ⇒ Object
- .subcommands ⇒ Object
Class Method Details
.add_subcommand(klass, subcommand_name, usage, description, options = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/inspec/plugin/v1/plugin_types/cli.rb', line 11 def self.add_subcommand(klass, subcommand_name, usage, description, = {}) subcommands[subcommand_name] = { klass: klass, subcommand_name: subcommand_name, usage: usage, description: description, options: , } end |
.subcommands ⇒ Object
7 8 9 |
# File 'lib/inspec/plugin/v1/plugin_types/cli.rb', line 7 def self.subcommands @subcommands ||= {} end |