Skip to content

Commit 346d610

Browse files
StartAutomatingStartAutomating
authored andcommitted
New-PipeScript: Adding -WeaklyTyped (Fixes #174)
1 parent ef2a05f commit 346d610

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs/New-PipeScript.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ Creates new PipeScript and PowerShell ScriptBlocks.
1616
New-PipeScript -Parameter @{a='b'}
1717
```
1818

19+
#### EXAMPLE 2
20+
```PowerShell
21+
New-PipeScript -Parameter ([Net.HttpWebRequest].GetProperties()) -ParameterHelp @{
22+
Accept='
23+
HTTP Accept.
24+
HTTP Accept indicates what content types the web request will accept as a response.
25+
'
26+
}
27+
```
28+
1929
---
2030
### Parameters
2131
#### **Parameter**
@@ -104,9 +114,19 @@ By default, ```[PSObject]```.
104114
|------------|--------|-------|-------------|
105115
|```[Type]```|false |7 |false |
106116
---
117+
#### **ParameterHelp**
118+
119+
If provided, will add inline help to parameters.
120+
121+
122+
123+
|Type |Requried|Postion|PipelineInput|
124+
|-------------------|--------|-------|-------------|
125+
|```[IDictionary]```|false |8 |false |
126+
---
107127
### Syntax
108128
```PowerShell
109-
New-PipeScript [[-Parameter] <Object>] [[-DynamicParameter] <ScriptBlock>] [[-Begin] <ScriptBlock>] [[-Process] <ScriptBlock>] [[-End] <ScriptBlock>] [[-Header] <String>] [-AutoParameter] [[-AutoParameterType] <Type>] [<CommonParameters>]
129+
New-PipeScript [[-Parameter] <Object>] [[-DynamicParameter] <ScriptBlock>] [[-Begin] <ScriptBlock>] [[-Process] <ScriptBlock>] [[-End] <ScriptBlock>] [[-Header] <String>] [-AutoParameter] [[-AutoParameterType] <Type>] [[-ParameterHelp] <IDictionary>] [<CommonParameters>]
110130
```
111131
---
112132

0 commit comments

Comments
 (0)