package cmd
import (
"io"
"github.com/spf13/cobra"
"github.com/vmware/dispatch/pkg/dispatchcli/i18n"
)
var (
iamCreateLong = i18n.T(`Create iam resources. See subcommands for iam resources type`)
iamCreateExample = i18n.T(``)
)
func NewCmdIamCreate(out io.Writer, errOut io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "create",
Short: i18n.T("Create iam resources."),
Long: iamCreateLong,
Example: iamCreateExample,
Run: runHelp,
}
cmd.AddCommand(NewCmdIamCreatePolicy(out, errOut))
cmd.AddCommand(NewCmdIamCreateServiceAccount(out, errOut))
cmd.AddCommand(NewCmdIamCreateOrganization(out, errOut))
return cmd
}