Class: Abide::CLI::XccdfCommand

Inherits:
CmdParse::Command
  • Object
show all
Defined in:
lib/abide_dev_utils/cli/xccdf.rb

Constant Summary collapse

CMD_NAME =
'xccdf'
CMD_SHORT =
'Commands related to XCCDF files'
CMD_LONG =
'Namespace for commands related to XCCDF files'

Instance Method Summary collapse

Constructor Details

#initializeXccdfCommand

Returns a new instance of XccdfCommand.



12
13
14
15
16
17
18
19
20
# File 'lib/abide_dev_utils/cli/xccdf.rb', line 12

def initialize
  super(CMD_NAME, takes_commands: true)
  short_desc(CMD_SHORT)
  long_desc(CMD_LONG)
  add_command(CmdParse::HelpCommand.new, default: true)
  add_command(XccdfToHieraCommand.new)
  add_command(XccdfDiffCommand.new)
  add_command(XccdfGenMapCommand.new)
end