Files
sailpoint-cli/cmd/transform/transform.go

40 lines
951 B
Go

// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package transform
import (
"github.com/spf13/cobra"
)
const (
transformsEndpoint = "/v3/transforms"
previewEndpoint = "/cc/api/user/preview"
identityProfileEndpoint = "/v3/identity-profiles"
userEndpoint = "/cc/api/identity/list"
)
func NewTransformCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "transform",
Short: "Manage Transforms in IdentityNow",
Long: "\nManage Transforms in IdentityNow\n\n",
Example: "sail transform | sail tran",
Aliases: []string{"tran"},
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
}
cmd.PersistentFlags().StringP("transforms-endpoint", "e", transformsEndpoint, "Override transforms endpoint")
cmd.AddCommand(
newListCommand(),
newDownloadCommand(),
newCreateCommand(),
newUpdateCommand(),
newDeleteCommand(),
newPreviewCommand(),
)
return cmd
}