Class: Init::CLI
- Inherits:
-
Inspec::BaseCLI
- Object
- Thor
- Inspec::BaseCLI
- Init::CLI
- Defined in:
- lib/bundles/inspec-init/cli.rb
Class Method Summary collapse
-
.banner(command, _namespace = nil, _subcommand = false) ⇒ Object
TODO: find another solution, once github.com/erikhuda/thor/issues/261 is fixed.
- .subcommand_prefix ⇒ Object
Methods inherited from Inspec::BaseCLI
exec_options, profile_options, target_options
Class Method Details
.banner(command, _namespace = nil, _subcommand = false) ⇒ Object
TODO: find another solution, once github.com/erikhuda/thor/issues/261 is fixed
11 12 13 |
# File 'lib/bundles/inspec-init/cli.rb', line 11 def self.(command, _namespace = nil, _subcommand = false) "#{basename} #{subcommand_prefix} #{command.usage}" end |
.subcommand_prefix ⇒ Object
15 16 17 |
# File 'lib/bundles/inspec-init/cli.rb', line 15 def self.subcommand_prefix namespace end |