mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-07 20:57:46 +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
50 lines
1.5 KiB
Go
50 lines
1.5 KiB
Go
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
|
|
package root
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/configure"
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/connector"
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/environment"
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/report"
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/search"
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/set"
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/spconfig"
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/transform"
|
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/va"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var version = "1.0.0"
|
|
|
|
func NewRootCmd() *cobra.Command {
|
|
root := &cobra.Command{
|
|
Use: "sail",
|
|
Short: "The SailPoint CLI allows you to administer your IdentityNow tenant from the command line.\nNavigate to https://developer.sailpoint.com/idn/tools/cli to learn more.",
|
|
Version: version,
|
|
SilenceUsage: true,
|
|
CompletionOptions: cobra.CompletionOptions{
|
|
DisableDefaultCmd: true,
|
|
DisableNoDescFlag: true,
|
|
DisableDescriptions: true,
|
|
},
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
_, _ = fmt.Fprint(cmd.OutOrStdout(), cmd.UsageString())
|
|
},
|
|
}
|
|
|
|
root.AddCommand(
|
|
set.NewSetCommand(),
|
|
environment.NewEnvironmentCommand(),
|
|
configure.NewConfigureCmd(),
|
|
connector.NewConnCmd(),
|
|
transform.NewTransformCmd(),
|
|
va.NewVACmd(),
|
|
search.NewSearchCmd(),
|
|
spconfig.NewSPConfigCmd(),
|
|
report.NewReportCommand(),
|
|
)
|
|
return root
|
|
}
|