CLI doc edits

This commit is contained in:
james.haytko
2023-11-06 12:26:21 -06:00
parent faf5d00d4d
commit cca1ed9066
52 changed files with 207 additions and 135 deletions

View File

@@ -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