Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodexCache = "CODEX_CACHE" CodexFeaturePrefix = "CODEX_FEATURE_" CodexGateway = "CODEX_GATEWAY" // CodexLatestVersion is the latest version available of the codex CLI binary. // NOTE: it should NOT start with v (like 0.4.8) CodexLatestVersion = "CODEX_LATEST_VERSION" CodexRegion = "CODEX_REGION" CodexSearchHost = "CODEX_SEARCH_HOST" CodexShellEnabled = "CODEX_SHELL_ENABLED" CodexShellStartTime = "CODEX_SHELL_START_TIME" CodexVM = "CODEX_VM" LauncherVersion = "LAUNCHER_VERSION" LauncherPath = "LAUNCHER_PATH" GitHubUsername = "GITHUB_USER_NAME" SSHTTY = "SSH_TTY" XDGDataHome = "XDG_DATA_HOME" XDGConfigHome = "XDG_CONFIG_HOME" XDGCacheHome = "XDG_CACHE_HOME" XDGStateHome = "XDG_STATE_HOME" )
View Source
const ( Env = "ENV" Home = "HOME" Path = "PATH" Shell = "SHELL" User = "USER" )
system
Variables ¶
This section is empty.
Functions ¶
func DoNotTrack ¶
func DoNotTrack() bool
func GetValueOrDefault ¶
GetValueOrDefault gets the value of an environment variable. If it's empty, it will return the given default value instead.
func IsCodexCloud ¶
func IsCodexCloud() bool
func IsCodexShellEnabled ¶
func IsCodexShellEnabled() bool
func IsInBrowser ¶
func IsInBrowser() bool
func MapToPairs ¶
MapToPairs creates a slice of environment variable "key=value" pairs from a map.
func PairsToMap ¶
PairsToMap creates a map from a slice of "key=value" environment variable pairs. Note that maps are not ordered, which can affect the final variable values when pairs contains duplicate keys.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.