main.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:aws-cfn-template-flip 作者: awslabs 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号