cmd_resource.py 文件源码

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

项目:ecxclient 作者: catalogicsoftware 项目源码 文件源码
def usedby(ctx, id, **kwargs):
    resp = AssociationAPI(ecx_session=ctx.ecx_session).get_using_resources(ctx.restype, id)["resources"]
    if ctx.json:
        ctx.print_response(resp)
        return

    table_data = [(x["type"], x["resourceId"], x["name"]) for x in resp]

    print
    click.echo_via_pager(tabulate(table_data, headers=["Type", "ID", "Name"]))
    print
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号