-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathcompliance-lock.go
More file actions
30 lines (26 loc) · 1.02 KB
/
compliance-lock.go
File metadata and controls
30 lines (26 loc) · 1.02 KB
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
30
package compliancelock
import (
"github.com/stackitcloud/stackit-cli/internal/cmd/object-storage/compliance-lock/describe"
"github.com/stackitcloud/stackit-cli/internal/cmd/object-storage/compliance-lock/lock"
"github.com/stackitcloud/stackit-cli/internal/cmd/object-storage/compliance-lock/unlock"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
"github.com/spf13/cobra"
)
func NewCmd(params *types.CmdParams) *cobra.Command {
cmd := &cobra.Command{
Use: "compliance-lock",
Short: "Provides functionality to manage Object Storage compliance lock",
Long: "Provides functionality to manage Object Storage compliance lock.",
Args: args.NoArgs,
Run: utils.CmdHelp,
}
addSubcommands(cmd, params)
return cmd
}
func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
cmd.AddCommand(lock.NewCmd(params))
cmd.AddCommand(unlock.NewCmd(params))
cmd.AddCommand(describe.NewCmd(params))
}