-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93acfad
commit 97ad58c
Showing
12 changed files
with
379 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
Modules/ScriptConfig/Helpers/ConvertFrom-ScriptConfigJson.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
Modules/ScriptConfig/Helpers/ConvertFrom-ScriptConfigXml.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
|
||
# Load the default configuration file in INI format | ||
$Config = Get-ScriptConfig -Format INI | ||
$Config = Get-ScriptConfig -Format 'INI' | ||
|
||
# Access the configuration settings | ||
Write-Host "String :" $Config.MyString | ||
Write-Host "Integer Positive :" $Config.MyIntegerPositive | ||
Write-Host "Integer Negative :" $Config.MyIntegerNegative | ||
Write-Host "Boolean True :" $Config.MyBooleanTrue | ||
Write-Host "Boolean False :" $Config.MyBooleanFalse | ||
Write-Host "Array :" $Config.MyArray | ||
Write-Host "Array Item :" $Config.MyArray[0] | ||
Write-Host "Hashtable :" $Config.MyHashtable | ||
Write-Host "Hashtable Item :" $Config.MyHashtable['Hello'] | ||
Write-Host "Hashtable Keys :" $Config.MyHashtable.Keys | ||
Write-Host "Hashtable Values :" $Config.MyHashtable.Values | ||
Write-Verbose "String :" $Config.MyString | ||
Write-Verbose "Integer Positive :" $Config.MyIntegerPositive | ||
Write-Verbose "Integer Negative :" $Config.MyIntegerNegative | ||
Write-Verbose "Boolean True :" $Config.MyBooleanTrue | ||
Write-Verbose "Boolean False :" $Config.MyBooleanFalse | ||
Write-Verbose "Array :" $Config.MyArray | ||
Write-Verbose "Array Item :" $Config.MyArray[0] | ||
Write-Verbose "Hashtable :" $Config.MyHashtable | ||
Write-Verbose "Hashtable Item :" $Config.MyHashtable['Hello'] | ||
Write-Verbose "Hashtable Keys :" $Config.MyHashtable.Keys | ||
Write-Verbose "Hashtable Values :" $Config.MyHashtable.Values |
24 changes: 12 additions & 12 deletions
24
Modules/ScriptConfig/Tests/Integration/JsonConfigDemo.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
|
||
# Load the default configuration file in JSON format | ||
$Config = Get-ScriptConfig -Format JSON | ||
$Config = Get-ScriptConfig -Format 'JSON' | ||
|
||
# Access the configuration settings | ||
Write-Host "String :" $Config.MyString | ||
Write-Host "Integer Positive :" $Config.MyIntegerPositive | ||
Write-Host "Integer Negative :" $Config.MyIntegerNegative | ||
Write-Host "Boolean True :" $Config.MyBooleanTrue | ||
Write-Host "Boolean False :" $Config.MyBooleanFalse | ||
Write-Host "Array :" $Config.MyArray | ||
Write-Host "Array Item :" $Config.MyArray[0] | ||
Write-Host "Hashtable :" $Config.MyHashtable | ||
Write-Host "Hashtable Item :" $Config.MyHashtable['Hello'] | ||
Write-Host "Hashtable Keys :" $Config.MyHashtable.Keys | ||
Write-Host "Hashtable Values :" $Config.MyHashtable.Values | ||
Write-Verbose "String :" $Config.MyString | ||
Write-Verbose "Integer Positive :" $Config.MyIntegerPositive | ||
Write-Verbose "Integer Negative :" $Config.MyIntegerNegative | ||
Write-Verbose "Boolean True :" $Config.MyBooleanTrue | ||
Write-Verbose "Boolean False :" $Config.MyBooleanFalse | ||
Write-Verbose "Array :" $Config.MyArray | ||
Write-Verbose "Array Item :" $Config.MyArray[0] | ||
Write-Verbose "Hashtable :" $Config.MyHashtable | ||
Write-Verbose "Hashtable Item :" $Config.MyHashtable['Hello'] | ||
Write-Verbose "Hashtable Keys :" $Config.MyHashtable.Keys | ||
Write-Verbose "Hashtable Values :" $Config.MyHashtable.Values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
|
||
# Load the default configuration file in XML format | ||
$Config = Get-ScriptConfig -Format XML | ||
$Config = Get-ScriptConfig -Format 'XML' | ||
|
||
# Access the configuration settings | ||
Write-Host "String :" $Config.MyString | ||
Write-Host "Integer Positive :" $Config.MyIntegerPositive | ||
Write-Host "Integer Negative :" $Config.MyIntegerNegative | ||
Write-Host "Boolean True :" $Config.MyBooleanTrue | ||
Write-Host "Boolean False :" $Config.MyBooleanFalse | ||
Write-Host "Array :" $Config.MyArray | ||
Write-Host "Array Item :" $Config.MyArray[0] | ||
Write-Host "Hashtable :" $Config.MyHashtable | ||
Write-Host "Hashtable Item :" $Config.MyHashtable['Hello'] | ||
Write-Host "Hashtable Keys :" $Config.MyHashtable.Keys | ||
Write-Host "Hashtable Values :" $Config.MyHashtable.Values | ||
Write-Verbose "String :" $Config.MyString | ||
Write-Verbose "Integer Positive :" $Config.MyIntegerPositive | ||
Write-Verbose "Integer Negative :" $Config.MyIntegerNegative | ||
Write-Verbose "Boolean True :" $Config.MyBooleanTrue | ||
Write-Verbose "Boolean False :" $Config.MyBooleanFalse | ||
Write-Verbose "Array :" $Config.MyArray | ||
Write-Verbose "Array Item :" $Config.MyArray[0] | ||
Write-Verbose "Hashtable :" $Config.MyHashtable | ||
Write-Verbose "Hashtable Item :" $Config.MyHashtable['Hello'] | ||
Write-Verbose "Hashtable Keys :" $Config.MyHashtable.Keys | ||
Write-Verbose "Hashtable Values :" $Config.MyHashtable.Values |
Oops, something went wrong.