MCPcopy
hub / github.com/spf13/cobra / activeHelpEnvVar

Function activeHelpEnvVar

active_help.go:58–60  ·  view source on GitHub ↗

activeHelpEnvVar returns the name of the program-specific ActiveHelp environment variable. It has the format <PROGRAM>_ACTIVE_HELP where <PROGRAM> is the name of the root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`.

(name string)

Source from the content-addressed store, hash-verified

56// variable. It has the format <PROGRAM>_ACTIVE_HELP where <PROGRAM> is the name of the
57// root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`.
58func activeHelpEnvVar(name string) string {
59 return configEnvVar(name, activeHelpEnvVarSuffix)
60}

Callers 11

genFishCompFunction · 0.85
GetActiveHelpConfigFunction · 0.85
TestConfigActiveHelpFunction · 0.85
TestDisableActiveHelpFunction · 0.85
genPowerShellCompFunction · 0.85
writePreambleFunction · 0.85

Calls 1

configEnvVarFunction · 0.85