List all groups.
()
| 496 | |
| 497 | @cli.command() |
| 498 | def groups(): |
| 499 | """List all groups.""" |
| 500 | authz = Authz.from_role(Role.load_cli_user()) |
| 501 | all_groups = [(g.foreign_id, g.id, g.name) for g in Role.all_groups(authz)] |
| 502 | print(tabulate(all_groups, headers=["Foreign ID", "ID", "Name"])) |
| 503 | |
| 504 | |
| 505 | @cli.command() |
nothing calls this directly
no test coverage detected