lib/bolt/bolt_option_parser.rb in bolt-1.33.0 vs lib/bolt/bolt_option_parser.rb in bolt-1.34.0
- old
+ new
@@ -29,10 +29,13 @@
{ flags: ACTION_OPTS + %w[tmpdir],
banner: FILE_HELP }
when 'inventory'
{ flags: OPTIONS[:inventory] + OPTIONS[:global] + %w[format inventoryfile boltdir configfile],
banner: INVENTORY_HELP }
+ when 'group'
+ { flags: OPTIONS[:global] + %w[format inventoryfile boltdir configfile],
+ banner: GROUP_HELP }
when 'plan'
case action
when 'convert'
{ flags: OPTIONS[:global] + OPTIONS[:global_config_setters],
banner: PLAN_CONVERT_HELP }
@@ -115,10 +118,11 @@
bolt puppetfile show-modules List modules available to Bolt
bolt secret createkeys Create new encryption keys
bolt secret encrypt <plaintext> Encrypt a value
bolt secret decrypt <encrypted> Decrypt a value
bolt inventory show Show the list of targets an action would run on
+ bolt group show Show the list of groups in the inventory
Run `bolt <subcommand> --help` to view specific examples.
Available options are:
HELP
@@ -294,9 +298,18 @@
Available actions are:
show Show the list of targets an action would run on
Available options are:
INVENTORY_HELP
+
+ GROUP_HELP = <<~GROUP_HELP
+ Usage: bolt group <action>
+
+ Available actions are:
+ show Show the list of groups in the inventory
+
+ Available options are:
+ GROUP_HELP
def initialize(options)
super()
@options = options