Summary
Contains functionality related to the environment.
- Namespace
- Cake
.Common - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["EnvironmentAliases"]
class Type type-node
Syntax
[CakeAliasCategory("Environment")]
public static class EnvironmentAliases
Attributes
| Type | Description |
|---|---|
| Cake |
An attribute used for documentation of alias methods/properties. |
Methods
| Name | Value | Summary |
|---|---|---|
| EnvironmentVariable |
string |
Retrieves the value of the environment variable or
null if the environment variable does not exist.
static
|
| EnvironmentVariable |
T |
Retrieves the value of the environment variable or defaultValue if the environment variable does not exist.
static
|
| EnvironmentVariables |
IDictionary |
Retrieves all environment variables.
static
|
| Has |
bool |
Checks for the existence of a value for a given environment variable.
static
|
| IsRunningOnFreeBSD |
bool |
Determines whether the build script running on a FreeBSD based system.
static
|
| IsRunningOnLinux |
bool |
Determines whether the build script running on a Linux based system.
static
|
| IsRunningOnMacOs |
bool |
Determines whether the build script running on a macOS based system.
static
|
| IsRunningOnUnix |
bool |
Determines whether the build script running on a Unix or Linux based system.
static
|
| IsRunningOnWindows |
bool |
Determines whether the build script is running on Windows.
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
