Files
coder/cli/users.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
634 B
Go
Raw Normal View History

2022-02-10 08:33:27 -06:00
package cli
import (
"github.com/coder/coder/v2/codersdk"
"github.com/coder/serpent"
)
2022-02-10 08:33:27 -06:00
2024-03-17 09:45:26 -05:00
func (r *RootCmd) users() *serpent.Command {
cmd := &serpent.Command{
Short: "Manage users",
2023-03-23 17:42:20 -05:00
Use: "users [subcommand]",
2022-06-20 10:40:08 -04:00
Aliases: []string{"user"},
Handler: func(inv *serpent.Invocation) error {
2023-03-23 17:42:20 -05:00
return inv.Command.HelpHandler(inv)
},
2024-03-17 09:45:26 -05:00
Children: []*serpent.Command{
2023-03-23 17:42:20 -05:00
r.userCreate(),
r.userList(),
r.userSingle(),
r.userDelete(),
r.userEditRoles(),
r.userOIDCClaims(),
2023-03-23 17:42:20 -05:00
r.createUserStatusCommand(codersdk.UserStatusActive),
r.createUserStatusCommand(codersdk.UserStatusSuspended),
2022-10-06 16:15:28 -04:00
},
2022-02-10 08:33:27 -06:00
}
return cmd
}