def main(out_format, no_flip, clean, long, input, output):
"""
AWS CloudFormation Template Flip is a tool that converts
AWS CloudFormation templates between JSON and YAML formats,
making use of the YAML format's short function syntax where possible."
"""
try:
output.write(flip(
input.read(),
out_format=out_format,
clean_up=clean,
no_flip=no_flip,
long_form=long,
))
except Exception as e:
raise click.ClickException("{}".format(e))
评论列表
文章目录