mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
19 lines
283 B
Go
19 lines
283 B
Go
package hints
|
|
|
|
import (
|
|
"os"
|
|
"strconv"
|
|
)
|
|
|
|
// Enabled returns whether cli hints are enabled or not
|
|
func Enabled() bool {
|
|
if v := os.Getenv("DOCKER_CLI_HINTS"); v != "" {
|
|
enabled, err := strconv.ParseBool(v)
|
|
if err != nil {
|
|
return true
|
|
}
|
|
return enabled
|
|
}
|
|
return true
|
|
}
|