mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-06 04:21:15 +00:00
40 lines
951 B
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
|
|
}
|