-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathgroup.go
More file actions
29 lines (25 loc) · 835 Bytes
/
group.go
File metadata and controls
29 lines (25 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package group
import (
"github.com/redhat-developer/app-services-cli/pkg/cmd/registry/group/create"
"github.com/redhat-developer/app-services-cli/pkg/cmd/registry/group/get"
"github.com/redhat-developer/app-services-cli/pkg/cmd/registry/group/list"
"github.com/redhat-developer/app-services-cli/pkg/shared/factory"
"github.com/spf13/cobra"
)
func NewGroupCommand(f *factory.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "group",
Short: f.Localizer.MustLocalize("group.cmd.description.short"),
Long: f.Localizer.MustLocalize("group.cmd.description.long"),
Example: f.Localizer.MustLocalize("group.cmd.example"),
Args: cobra.MinimumNArgs(1),
Hidden: true,
}
// add sub-commands
cmd.AddCommand(
list.NewListCommand(f),
create.NewCreateCommand(f),
get.NewGetCommand(f),
)
return cmd
}