github.com/thajeztah/cli@v0.0.0-20240223162942-dc6bfac81a8b/cli/hints/hints.go (about) 1 package hints 2 3 import ( 4 "os" 5 "strconv" 6 ) 7 8 // Enabled returns whether cli hints are enabled or not 9 func Enabled() bool { 10 if v := os.Getenv("DOCKER_CLI_HINTS"); v != "" { 11 enabled, err := strconv.ParseBool(v) 12 if err != nil { 13 return true 14 } 15 return enabled 16 } 17 return true 18 }