Cake.ArgumentHelpers

Cake add-on trying to make it easier to handle various inputs from arguments and environment variable.

#addin nuget:?package=Cake.ArgumentHelpers&version=0.3.0

<package id="Cake.ArgumentHelpers" version="0.3.0" />

dotnet add package Cake.ArgumentHelpers --version 0.3.0

<PackageReference Include="Cake.ArgumentHelpers" Version="0.3.0" />

Aliases

Contains Aliases for helping work with combinations of Argument and Environment variables.

Argument

ArgumentOrEnvironmentVariable(ICakeContext, string, bool) Get a bool variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
ArgumentOrEnvironmentVariable(ICakeContext, string, string) Get a string variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
ArgumentOrEnvironmentVariable(ICakeContext, string, string, bool) Get a bool variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
ArgumentOrEnvironmentVariable(ICakeContext, string, string, string) Get a string variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.