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

Method organizations

cli/organization.go:14–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12)
13
14func (r *RootCmd) organizations() *serpent.Command {
15 orgContext := NewOrganizationContext()
16
17 cmd := &serpent.Command{
18 Use: "organizations [subcommand]",
19 Short: "Organization related commands",
20 Aliases: []string{"organization", "org", "orgs"},
21 Handler: func(inv *serpent.Invocation) error {
22 return inv.Command.HelpHandler(inv)
23 },
24 Children: []*serpent.Command{
25 r.showOrganization(orgContext),
26 r.listOrganizations(),
27 r.createOrganization(),
28 r.deleteOrganization(orgContext),
29 r.organizationMembers(orgContext),
30 r.organizationRoles(orgContext),
31 r.organizationSettings(orgContext),
32 },
33 }
34
35 orgContext.AttachOptions(cmd)
36 return cmd
37}
38
39func (r *RootCmd) showOrganization(orgContext *OrganizationContext) *serpent.Command {
40 var (

Callers 1

CoreSubcommandsMethod · 0.95

Calls 9

showOrganizationMethod · 0.95
listOrganizationsMethod · 0.95
createOrganizationMethod · 0.95
deleteOrganizationMethod · 0.95
organizationMembersMethod · 0.95
organizationRolesMethod · 0.95
organizationSettingsMethod · 0.95
AttachOptionsMethod · 0.95
NewOrganizationContextFunction · 0.85

Tested by

no test coverage detected