cli.py 文件源码

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

项目:zops 作者: bjinwright 项目源码 文件源码
def user_credentials(ctx,app_name,stage_name):
    result = Zops(app_name,stage_name,
                  profile_name=ctx.obj['profile_name']).user_stack_outputs()
    try:
        table_data = [
            [i['OutputKey'], i['OutputValue']]
            for i in result
            ]
    except TypeError:
        click.echo('User creds not ready yet.')
        return
    table_data.insert(0, ['Attribute','Value'])
    table = terminaltables.AsciiTable(table_data)
    click.echo(table.table)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号