()
| 3 | import "github.com/coder/serpent" |
| 4 | |
| 5 | func (r *RootCmd) groups() *serpent.Command { |
| 6 | cmd := &serpent.Command{ |
| 7 | Use: "groups", |
| 8 | Short: "Manage groups", |
| 9 | Aliases: []string{"group"}, |
| 10 | Handler: func(inv *serpent.Invocation) error { |
| 11 | return inv.Command.HelpHandler(inv) |
| 12 | }, |
| 13 | Children: []*serpent.Command{ |
| 14 | r.groupCreate(), |
| 15 | r.groupList(), |
| 16 | r.groupEdit(), |
| 17 | r.groupDelete(), |
| 18 | }, |
| 19 | } |
| 20 | |
| 21 | return cmd |
| 22 | } |
no test coverage detected