lib/bora/cli.rb in bora-1.2.0 vs lib/bora/cli.rb in bora-1.3.0

- old
+ new

@@ -15,11 +15,11 @@ default: nil, desc: "The region to use for the stack operation. Overrides any regions specified in the Bora config file." class_option "cfn-stack-name", type: :string, - aliases: :c, + aliases: :n, default: nil, desc: "The name to give the stack in CloudFormation. Overrides any CFN stack name setting in the Bora config file." desc "list", "Lists the available stacks" def list @@ -41,21 +41,27 @@ stack(options.file, stack_name).delete end desc "diff STACK_NAME", "Diffs the new template with the stack's current template" option :params, type: :array, aliases: :p, desc: "Parameters to be passed to the template, eg: --params 'instance_type=t2.micro'" + option :context, type: :numeric, aliases: :c, default: 3, desc: "Number of lines of context to show around the differences" def diff(stack_name) - stack(options.file, stack_name).diff(params) + stack(options.file, stack_name).diff(params, options.context) end desc "events STACK_NAME", "Outputs the latest events from the stack" def events(stack_name) stack(options.file, stack_name).events end desc "outputs STACK_NAME", "Shows the outputs from the stack" def outputs(stack_name) stack(options.file, stack_name).outputs + end + + desc "parameters STACK_NAME", "Shows the parameters from the stack" + def parameters(stack_name) + stack(options.file, stack_name).parameters end desc "recreate STACK_NAME", "Recreates (deletes then creates) the stack" option :params, type: :array, aliases: :p, desc: "Parameters to be passed to the template, eg: --params 'instance_type=t2.micro'" def recreate(stack_name)