MCPcopy Index your code
hub / github.com/coder/coder / organizationRoles

Method organizationRoles

cli/organizationroles.go:19–34  ·  view source on GitHub ↗
(orgContext *OrganizationContext)

Source from the content-addressed store, hash-verified

17)
18
19func (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
36func (r *RootCmd) showOrganizationRoles(orgContext *OrganizationContext) *serpent.Command {
37 formatter := cliui.NewOutputFormatter(

Callers 1

organizationsMethod · 0.95

Calls 3

showOrganizationRolesMethod · 0.95

Tested by

no test coverage detected