class Inspec::Plugins::CLI
stores all CLI
plugin, we expect those to the `Thor` subclasses
Public Class Methods
add_subcommand(klass, subcommand_name, usage, description, options = {})
click to toggle source
# File lib/inspec/plugin/v1/plugin_types/cli.rb, line 11 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
subcommands()
click to toggle source
# File lib/inspec/plugin/v1/plugin_types/cli.rb, line 7 def self.subcommands @subcommands ||= {} end