@@ -0,0 +1,759 @@
+import click%0A%0Afrom ..cli import cli_command%0Afrom ..stacks import StackPlan%0A%0A%0A@cli_command('debug-value', max_apps=0)%0A@click.argument('values', nargs=-1)%0Adef debug_value_cmd(ctx, values):%0A    %22%22%22Get values of the given dotted variables.%22%22%22%0A%0A    plan = StackPlan.from_ctx(ctx, apps=%5B'all'%5D, logger=None)%0A    plan.info(with_aws=False)%0A%0A    for value in values:%0A        ctx.log(%22%25s: %25s%22, value, plan.get_value(value))%0A%0A%0A@cli_command('debug-template', max_apps=1)%0Adef debug_template_cmd(ctx):%0A    %22%22%22Print the app CloudFormation template after Jinja processing.%22%22%22%0A    plan = StackPlan.from_ctx(ctx, logger=None)%0A%0A    for name, stack in plan.stacks(with_dependencies=False):%0A        built_stack = plan.build_stack(stack)%0A        ctx.log(built_stack.template_body)%0A

Add debug-value and debug-template CLI commands