Skip to content

Commit

Permalink
Updating EZOut tests (re #69)
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Sep 12, 2022
1 parent 4be9c6e commit f9afe1e
Showing 1 changed file with 83 additions and 24 deletions.
107 changes: 83 additions & 24 deletions docs/Format-Hashtable.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Handles nested hashtables and indents nested hashtables automatically.
---
### Related Links
* [about_hash_tables](about_hash_tables.md)



---
### Examples
#### EXAMPLE 1
Expand All @@ -30,59 +33,101 @@ The hashtable or PSObject that will be written as a PowerShell Hashtable



|Type |Requried|Postion|PipelineInput |
|----------------|--------|-------|------------------------------|
|```[PSObject]```|false |1 |true (ByValue, ByPropertyName)|
> **Type**: ```[PSObject]```
> **Required**: false
> **Position**: 1
> **PipelineInput**:true (ByValue, ByPropertyName)


---
#### **AsScriptBlock**

Returns the content as a script block, rather than a string



|Type |Requried|Postion|PipelineInput|
|--------------|--------|-------|-------------|
|```[Switch]```|false |named |false |
> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:false


---
#### **AsPSObject**

If set, will return the hashtable and all nested hashtables as custom objects.



|Type |Requried|Postion|PipelineInput|
|--------------|--------|-------|-------------|
|```[Switch]```|false |named |false |
> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:false


---
#### **Sort**

If set, items in the hashtable will be sorted alphabetically



|Type |Requried|Postion|PipelineInput|
|--------------|--------|-------|-------------|
|```[Switch]```|false |named |false |
> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:false


---
#### **ExpandCredential**

If set, credentials will be expanded out into a hashtable containing the username and password.



|Type |Requried|Postion|PipelineInput|
|--------------|--------|-------|-------------|
|```[Switch]```|false |named |false |
> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:false


---
#### **Compress**

If set, the outputted hashtable will not contain any extra whitespace.



|Type |Requried|Postion|PipelineInput|
|--------------|--------|-------|-------------|
|```[Switch]```|false |named |false |
> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:false


---
#### **Safe**

Expand All @@ -91,9 +136,16 @@ so that the resulting hashtable could work in data language mode.



|Type |Requried|Postion|PipelineInput|
|--------------|--------|-------|-------------|
|```[Switch]```|false |named |false |
> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:false


---
#### **Depth**

Expand All @@ -102,9 +154,16 @@ Beneath this depth, items will simply be returned as $null.



|Type |Requried|Postion|PipelineInput|
|-------------|--------|-------|-------------|
|```[Int32]```|false |named |false |
> **Type**: ```[Int32]```
> **Required**: false
> **Position**: named
> **PipelineInput**:false


---
### Outputs
[string]
Expand Down

0 comments on commit f9afe1e

Please sign in to comment.