Class: Init::CLI

Inherits:
Inspec::BaseCLI show all
Defined in:
lib/bundles/inspec-init/cli.rb

Class Method Summary collapse

Methods inherited from Inspec::BaseCLI

default_options, detect, exec_options, exit_on_failure?, parse_reporters, profile_options, target_options, validate_reporters

Class Method Details

TODO: find another solution, once github.com/erikhuda/thor/issues/261 is fixed



12
13
14
# File 'lib/bundles/inspec-init/cli.rb', line 12

def self.banner(command, _namespace = nil, _subcommand = false)
  "#{basename} #{subcommand_prefix} #{command.usage}"
end

.subcommand_prefixObject



16
17
18
# File 'lib/bundles/inspec-init/cli.rb', line 16

def self.subcommand_prefix
  namespace
end