Get-EvergreenAppsPath
SYNOPSIS
Returns the file system path to the local Evergreen application definitions cache.
SYNTAX
Get-EvergreenAppsPath [<CommonParameters>]DESCRIPTION
Returns the directory path where Evergreen stores cached application definition scripts and manifests. Evergreen uses this path to locate the application functions used by Get-EvergreenApp and other cmdlets.
The path is determined by the following logic:
- If the
EVERGREEN_APPS_PATHenvironment variable is set and points to a valid directory, that path is returned. - If
EVERGREEN_APPS_PATHis set but does not point to a valid directory, a warning is displayed and the raw environment variable value is returned. - If
EVERGREEN_APPS_PATHis not set, the default platform-specific path is returned:- Windows:
%LocalAppData%\Evergreen - macOS / Linux:
~/.evergreen
- Windows:
EXAMPLES
EXAMPLE 1
Get-EvergreenAppsPath
C:\Users\Aaron\AppData\Local\EvergreenDescription: Returns the default application definitions cache path on Windows when the EVERGREEN_APPS_PATH environment variable is not set.
EXAMPLE 2
$env:EVERGREEN_APPS_PATH = "C:\EvergreenDev\evergreen-apps"
Get-EvergreenAppsPath
C:\EvergreenDev\evergreen-appsDescription: Returns the custom path specified by the EVERGREEN_APPS_PATH environment variable. This is useful for local development and testing of application definitions from a cloned copy of the evergreen-apps repository.
EXAMPLE 3
Get-EvergreenAppsPath
/Users/aaron/.evergreenDescription: Returns the default application definitions cache path on macOS when the EVERGREEN_APPS_PATH environment variable is not set.
PARAMETERS
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
System.String
Returns the resolved file system path to the Evergreen application definitions directory.
NOTES
Site: https://eucpilots.com/evergreen
Author: Aaron Parker
