(orgContext *OrganizationContext)
| 17 | ) |
| 18 | |
| 19 | func (r *RootCmd) organizationRoles(orgContext *OrganizationContext) *serpent.Command { |
| 20 | cmd := &serpent.Command{ |
| 21 | Use: "roles", |
| 22 | Short: "Manage organization roles.", |
| 23 | Aliases: []string{"role"}, |
| 24 | Handler: func(inv *serpent.Invocation) error { |
| 25 | return inv.Command.HelpHandler(inv) |
| 26 | }, |
| 27 | Children: []*serpent.Command{ |
| 28 | r.showOrganizationRoles(orgContext), |
| 29 | r.updateOrganizationRole(orgContext), |
| 30 | r.createOrganizationRole(orgContext), |
| 31 | }, |
| 32 | } |
| 33 | return cmd |
| 34 | } |
| 35 | |
| 36 | func (r *RootCmd) showOrganizationRoles(orgContext *OrganizationContext) *serpent.Command { |
| 37 | formatter := cliui.NewOutputFormatter( |
no test coverage detected