|
1 | 1 | # Add-ModuleProperty |
2 | 2 |
|
3 | | - |
4 | | -Add-ModuleProperty [-Property] <string> [-HelpDoc] <psobject> [<CommonParameters>] |
5 | | - |
6 | | -Add-ModuleProperty [-Property] <string> [-HelpDoc] <psobject> [-H3] [<CommonParameters>] |
7 | | - |
8 | | -Add-ModuleProperty [-Property] <string> [-HelpDoc] <psobject> [-H2] [<CommonParameters>] |
9 | | - |
10 | | -Add-ModuleProperty [-Property] <string> [-HelpDoc] <psobject> [-H1] [<CommonParameters>] |
11 | | - |
| 3 | +Return the value for the given property optionally formatted as a Header. |
12 | 4 |
|
13 | 5 | ## Parameters |
14 | 6 |
|
15 | 7 | ### Parameter Set 1 |
16 | 8 |
|
17 | | -- `[string]` **Property** _Parameter help description_ Mandatory |
18 | | -- `[psobject]` **HelpDoc** _Parameter help description_ Mandatory, ValueFromPipeline |
| 9 | +- `[PSObject]` **HelpDoc** _A HelpDoc object._ Mandatory, ValueFromPipeline |
| 10 | +- `[String]` **Property** _A top level property from the Help object. Valid values are `'Name'`, `'Author'`, `'Description'`, `'HelpInfoUri'`, `'LicenseUri'`, `'ProjectUri'`, and `'Version'`._ Mandatory |
19 | 11 |
|
20 | 12 | ### Parameter Set 2 |
21 | 13 |
|
22 | | -- `[string]` **Property** _Parameter help description_ Mandatory |
23 | | -- `[psobject]` **HelpDoc** _Parameter help description_ Mandatory, ValueFromPipeline |
24 | | -- `[Switch]` **H3** _Parameter help description_ |
| 14 | +- `[PSObject]` **HelpDoc** _A HelpDoc object._ Mandatory, ValueFromPipeline |
| 15 | +- `[String]` **Property** _A top level property from the Help object. Valid values are `'Name'`, `'Author'`, `'Description'`, `'HelpInfoUri'`, `'LicenseUri'`, `'ProjectUri'`, and `'Version'`._ Mandatory |
| 16 | +- `[Switch]` **H3** _Format the property value as an H3 header._ |
25 | 17 |
|
26 | 18 | ### Parameter Set 3 |
27 | 19 |
|
28 | | -- `[string]` **Property** _Parameter help description_ Mandatory |
29 | | -- `[psobject]` **HelpDoc** _Parameter help description_ Mandatory, ValueFromPipeline |
30 | | -- `[Switch]` **H2** _Parameter help description_ |
| 20 | +- `[PSObject]` **HelpDoc** _A HelpDoc object._ Mandatory, ValueFromPipeline |
| 21 | +- `[String]` **Property** _A top level property from the Help object. Valid values are `'Name'`, `'Author'`, `'Description'`, `'HelpInfoUri'`, `'LicenseUri'`, `'ProjectUri'`, and `'Version'`._ Mandatory |
| 22 | +- `[Switch]` **H2** _Format the property value as an H2 header._ |
31 | 23 |
|
32 | 24 | ### Parameter Set 4 |
33 | 25 |
|
34 | | -- `[string]` **Property** _Parameter help description_ Mandatory |
35 | | -- `[psobject]` **HelpDoc** _Parameter help description_ Mandatory, ValueFromPipeline |
36 | | -- `[Switch]` **H1** _Parameter help description_ |
| 26 | +- `[PSObject]` **HelpDoc** _A HelpDoc object._ Mandatory, ValueFromPipeline |
| 27 | +- `[String]` **Property** _A top level property from the Help object. Valid values are `'Name'`, `'Author'`, `'Description'`, `'HelpInfoUri'`, `'LicenseUri'`, `'ProjectUri'`, and `'Version'`._ Mandatory |
| 28 | +- `[Switch]` **H1** _Format the property value as an H1 header._ |
| 29 | + |
| 30 | +## Examples |
| 31 | + |
| 32 | +### Example 1 |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +```powershell |
| 37 | +Get-HelpModuleData build-docs | New-HelpDoc | Add-ModuleProperty -Property Name -H1 |
| 38 | +Name Value |
| 39 | +---- ----- |
| 40 | +Text # build-docs… |
| 41 | +PSTypeName HelpModuleReadme |
| 42 | +HelpModuleData @{Name=build-docs; Commands=System.Object[]; Author=System.Object[]; Description=System.Object[]; … |
| 43 | +``` |
| 44 | + |
| 45 | +## Links |
| 46 | + |
| 47 | +- [New-HelpDoc](New-HelpDoc.md) |
| 48 | +- [Get-HelpModuleData](Get-HelpModuleData.md) |
37 | 49 |
|
38 | | -## Outputs |
| 50 | +## Notes |
39 | 51 |
|
40 | | -- `System.Object` |
| 52 | +If no Header switch is provided, the default is no formatting. |
0 commit comments