mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-09 12:47:44 +00:00
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
42 lines
976 B
Go
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
|
|
}
|