< Back
Get-MergedParametersAndUserSettings
Post
NAME Get-MergedParametersAndUserSettings
SYNOPSIS
1. Loads the settings found in "$SolutionRootPath\\.pentia\\user-settings.json", and uses them as a fallback values
for each parameter that's null, empty or whitespace.
The intent is to provide a mechanism for overriding saved values while minimizing the need for mandatory
parameters.
2. The merged settings are saved to "$SolutionRootPath\\.pentia\\user-settings.json".
3. Returns a settings object.
SYNTAX
Get-MergedParametersAndUserSettings [-SolutionRootPath] <String> [[-WebrootOutputPath] <String>]
[[-DataOutputPath] <String>] [[-BuildConfiguration] <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-SolutionRootPath <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WebrootOutputPath <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DataOutputPath <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BuildConfiguration <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
UserSettings
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$currentSettings = Get-MergedParametersAndUserSettings -SolutionRootPath "D:\\Projects\\SI\\"
-WebrootOutputPath "D:\\MyNewOutputPath"
Returns the settings found in "D:\\Projects\\SI\\.pentia\\user-settings.json", with the $WebrootOutputPath overwritten
to "D:\\MyNewOutputPath", and saves these changed settings.
RELATED LINKS
SYNOPSIS
1. Loads the settings found in "$SolutionRootPath\\.pentia\\user-settings.json", and uses them as a fallback values
for each parameter that's null, empty or whitespace.
The intent is to provide a mechanism for overriding saved values while minimizing the need for mandatory
parameters.
2. The merged settings are saved to "$SolutionRootPath\\.pentia\\user-settings.json".
3. Returns a settings object.
SYNTAX
Get-MergedParametersAndUserSettings [-SolutionRootPath] <String> [[-WebrootOutputPath] <String>]
[[-DataOutputPath] <String>] [[-BuildConfiguration] <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-SolutionRootPath <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WebrootOutputPath <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DataOutputPath <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BuildConfiguration <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
UserSettings
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$currentSettings = Get-MergedParametersAndUserSettings -SolutionRootPath "D:\\Projects\\SI\\"
-WebrootOutputPath "D:\\MyNewOutputPath"
Returns the settings found in "D:\\Projects\\SI\\.pentia\\user-settings.json", with the $WebrootOutputPath overwritten
to "D:\\MyNewOutputPath", and saves these changed settings.
RELATED LINKS