Documentation
¶
Overview ¶
Package env answers where Encore tools and resources are located.
Index ¶
- func EncoreBin() option.Option[string]
- func EncoreDaemonLogPath() string
- func EncoreDevDashListenAddr() option.Option[string]
- func EncoreGoRoot() string
- func EncoreMCPSSEListenAddr() option.Option[string]
- func EncoreObjectStorageListAddr() option.Option[string]
- func EncoreRuntimeLib() string
- func EncoreRuntimesPath() string
- func IsSSH() bool
- func List() []string
- func OptEncoreGoRoot() option.Option[string]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncoreBin ¶
EncoreBin reports the path to the directory containing the Encore installation's binaries.
func EncoreDaemonLogPath ¶
func EncoreDaemonLogPath() string
EncoreDaemonLogPath reports the path to the Encore daemon log file. It can be overridden by setting ENCORE_DAEMON_LOG_PATH.
func EncoreDevDashListenAddr ¶
EncoreDevDashListenAddr reports the listen address for where the daemon exposes the dev dash. It can be overridden by setting ENCORE_DEVDASH_LISTEN_ADDR.
func EncoreGoRoot ¶
func EncoreGoRoot() string
EncoreGoRoot reports the path to the Encore Go root. It can be overridden by setting ENCORE_GOROOT.
func EncoreMCPSSEListenAddr ¶
EncoreMCPSSEListenAddr reports the listen address for where the daemon exposes the MCP SSE endpoint. It can be overridden by setting ENCORE_MCPSSE_LISTEN_ADDR.
func EncoreRuntimeLib ¶
func EncoreRuntimeLib() string
EncoreRuntimeLib reports the path to the Encore runtime library for node.js. It can be overridden by setting ENCORE_RUNTIME_LIB.
func EncoreRuntimesPath ¶
func EncoreRuntimesPath() string
EncoreRuntimesPath reports the path to the Encore runtime. It can be overridden by setting ENCORE_RUNTIMES_PATH.
func List ¶
func List() []string
List reports Encore environment variables, in the same format as os.Environ().
func OptEncoreGoRoot ¶
OptEncoreGoRoot reports the path to the Encore Go root. It can be overridden by setting ENCORE_GOROOT. If the goroot can't be found, it reports None.
Types ¶
This section is empty.