Public/ps1/Configuration/General/Get-ApprxrConfiguration.ps1
|
<#
.SYNOPSIS Retrieves the Apprxr configuration from the config.json file. .DESCRIPTION Ensures the configuration file exists, then reads and returns its contents as a PowerShell object. .EXAMPLE Get-ApprxrConfiguration .NOTES Used for loading the main configuration for Apprxr operations. #> function Get-ApprxrConfiguration { $folder = Get-ApprxrConfigurationFolder if (Test-Path "$folder\config.json") { } else { "{}"|set-content "$folder\config.json" } Get-Content "$folder\config.json" | ConvertFrom-Json } |