Method: Inspec::Plugins::CLI.add_subcommand
- Defined in:
- lib/inspec/plugin/v1/plugin_types/cli.rb
.add_subcommand(klass, subcommand_name, usage, description, options = {}) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/inspec/plugin/v1/plugin_types/cli.rb', line 15 def self.add_subcommand(klass, subcommand_name, usage, description, = {}) subcommands[subcommand_name] = { klass: klass, subcommand_name: subcommand_name, usage: usage, description: description, options: , } end |