// 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 }