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)
评论列表
文章目录