mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
23 lines
411 B
Go
23 lines
411 B
Go
package cli
|
|
|
|
import "github.com/coder/serpent"
|
|
|
|
func (r *RootCmd) groups() *serpent.Cmd {
|
|
cmd := &serpent.Cmd{
|
|
Use: "groups",
|
|
Short: "Manage groups",
|
|
Aliases: []string{"group"},
|
|
Handler: func(inv *serpent.Invocation) error {
|
|
return inv.Command.HelpHandler(inv)
|
|
},
|
|
Children: []*serpent.Cmd{
|
|
r.groupCreate(),
|
|
r.groupList(),
|
|
r.groupEdit(),
|
|
r.groupDelete(),
|
|
},
|
|
}
|
|
|
|
return cmd
|
|
}
|