def list_roles(): """Show a list of all available roles""" for role in lib.get_roles(): margin_left = lib.get_margin(len(role['fullname'])) print("{0}{1}{2}".format( role['fullname'], margin_left, role.get('description', '(no description)')))
def list_roles_detailed(): """Show detailed information for all roles""" for role in lib.get_roles(): lib.print_role(role)
def list_roles(): """Show a list of all available roles""" for role in lib.get_roles(): margin_left = lib.get_margin(len(role['fullname'])) print("{0}{1}{2}".format(role['fullname'], margin_left, role.get('description', '(no description)')))