| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Resolves a boolean configuration value from an environment variable with a script-defined default.
Get-ConfigurationBoolean [-Name] <string> [-Default <bool>] [<CommonParameters>]This helper is intended for build DSL scripts that need environment overrides without repeating [bool]::Parse boilerplate in every repository.
New-ConfigurationBuild -RefreshPSD1Only:(Get-ConfigurationBoolean RefreshPSD1Only -Default $true)Value returned when the environment variable is missing or blank.
Type: Boolean
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueEnvironment variable name to read.
Type: String
Parameter Sets: __AllParameterSets
Aliases: VariableName
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
None
System.Boolean
- None