Module: Abide::CLI
- Includes:
- AbideDevUtils::CliConstants
- Defined in:
- lib/abide_dev_utils/cli.rb,
lib/abide_dev_utils/cli/sce.rb,
lib/abide_dev_utils/cli/jira.rb,
lib/abide_dev_utils/cli/test.rb,
lib/abide_dev_utils/cli/xccdf.rb,
lib/abide_dev_utils/cli/comply.rb,
lib/abide_dev_utils/cli/puppet.rb,
lib/abide_dev_utils/cli/abstract.rb
Defined Under Namespace
Classes: AbideCommand, ComplyCommand, ComplyCompareReportCommand, ComplyReportCommand, JiraAuthCommand, JiraCommand, JiraFromCoverageCommand, JiraFromXccdfCommand, JiraFromXccdfDiffCommand, JiraGetIssueCommand, JiraNewIssueCommand, PuppetAddCISCommentCommand, PuppetAuditClassNamesCommand, PuppetCommand, PuppetCoverageCommand, PuppetFixClassNamesCommand, PuppetNewCommand, PuppetRenameCommand, PuppetScoreModuleCommand, SceCommand, SceGenerate, SceGenerateCoverageReport, SceGenerateReference, SceUpdateConfig, SceUpdateConfigFromDiff, SceValidate, SceValidatePuppetStrings, TestCommand, XccdfCommand, XccdfDiffCommand, XccdfGenMapCommand, XccdfToHieraCommand
Constant Summary collapse
- ROOT_CMD_NAME =
'abide'
- ROOT_CMD_BANNER =
'Developer tools for Abide'
- DEPRECATED_COMMANDS =
%w[comply test].freeze
Constants included from AbideDevUtils::CliConstants
AbideDevUtils::CliConstants::CONFIG, AbideDevUtils::CliConstants::ERRORS, AbideDevUtils::CliConstants::OUTPUT, AbideDevUtils::CliConstants::PROMPT, AbideDevUtils::CliConstants::VALIDATE
Class Method Summary collapse
Class Method Details
.execute(argv = ARGV) ⇒ Object
36 37 38 39 |
# File 'lib/abide_dev_utils/cli.rb', line 36 def self.execute(argv = ARGV) parser = new_parser parser.parse(argv) end |
.new_parser ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/abide_dev_utils/cli.rb', line 20 def self.new_parser parser = CmdParse::CommandParser.new(handle_exceptions: true) parser..program_name = ROOT_CMD_NAME parser..version = AbideDevUtils::VERSION parser.. = ROOT_CMD_BANNER parser.add_command(CmdParse::HelpCommand.new, default: true) parser.add_command(CmdParse::VersionCommand.new(add_switches: true)) parser.add_command(SceCommand.new) parser.add_command(ComplyCommand.new) parser.add_command(PuppetCommand.new) parser.add_command(XccdfCommand.new) parser.add_command(TestCommand.new) parser.add_command(JiraCommand.new) parser end |