mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-09 12:47:44 +00:00
CLI doc edits
This commit is contained in:
@@ -11,8 +11,8 @@ import (
|
||||
func newDebugCommand() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "debug",
|
||||
Short: "Enable or Disable Debug Mode for the CLI",
|
||||
Long: "\nEnable or Disable Debug Mode for the CLI, Primarily used for troubleshooting.\n\n",
|
||||
Short: "Enable or disable Debug Mode for the CLI",
|
||||
Long: "\nEnable or disable Debug Mode for the CLI. Primarily used for troubleshooting.\n\n",
|
||||
Example: "sail set debug disable | sail set debug enable | sail set debug true | sail set debug false",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
@@ -20,12 +20,12 @@ func newDebugCommand() *cobra.Command {
|
||||
switch strings.ToLower(args[0]) {
|
||||
case "enable", "true":
|
||||
viper.Set("debug", true)
|
||||
log.Info("Debug Enabled")
|
||||
log.Info("Debug enabled")
|
||||
case "disable", "false":
|
||||
viper.Set("debug", false)
|
||||
log.Info("Debug Disabled")
|
||||
log.Info("Debug disabled")
|
||||
default:
|
||||
log.Error("Invalid Selection")
|
||||
log.Error("Invalid selection")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user