Files
sailpoint-cli/cmd/transform/transform.go
luke-hagar-sp 53db83cde7 Help Cleanup, Flag Corrections, Spelling, Descriptions, Whitespace formatting
Added Wait flag for SPConfig Import
Implemented Debug Logging
Adding warnings and confirm for printing or erasing environments
Corrected and Normalized Command Help Sections
Swapped GetDebug If Checks to Log.Debug() calls
Corrected Wrong command examples, added new examples
Fixed some function names that were incorrect
Adjusted Readme Download counter
2023-04-13 10:46:39 -05:00

42 lines
976 B
Go

// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package transform
import (
"fmt"
"github.com/spf13/cobra"
)
const (
transformsEndpoint = "/v3/transforms"
previewEndpoint = "/cc/api/user/preview"
identityProfileEndpoint = "/v3/identity-profiles"
userEndpoint = "/cc/api/identity/list"
)
func NewTransformCmd() *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) {
_, _ = fmt.Fprint(cmd.OutOrStdout(), cmd.UsageString())
},
}
cmd.PersistentFlags().StringP("transforms-endpoint", "e", transformsEndpoint, "Override transforms endpoint")
cmd.AddCommand(
newListCmd(),
newDownloadCmd(),
newCreateCmd(),
newUpdateCmd(),
newDeleteCmd(),
newPreviewCmd(),
)
return cmd
}