mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-09 20:57:44 +00:00
31 lines
659 B
Go
31 lines
659 B
Go
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
|
|
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/sailpoint/sp-cli/client"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewRootCmd(client client.Client) *cobra.Command {
|
|
root := &cobra.Command{
|
|
Use: "sp",
|
|
Short: "sp",
|
|
SilenceUsage: true,
|
|
CompletionOptions: cobra.CompletionOptions{
|
|
DisableDefaultCmd: true,
|
|
DisableNoDescFlag: true,
|
|
DisableDescriptions: true,
|
|
},
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
_, _ = fmt.Fprintf(cmd.OutOrStdout(), cmd.UsageString())
|
|
},
|
|
}
|
|
root.AddCommand(
|
|
newConnCmd(client),
|
|
newConfigureCmd(client),
|
|
)
|
|
return root
|
|
}
|