-
-
Notifications
You must be signed in to change notification settings - Fork 4
Install MAML
Installs MAML into a module
Installs MAML into a module.
This generates a single script that:
- Includes all commands
- Removes their multiline comments
- Directs the commands to use external help
You should then include this script in your module import.
Ideally, you should use the allcommands script
Install-MAML -Module HelpOut
The name of one or more modules.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String[]] |
true | 1 | true (ByPropertyName) |
If set, will refresh the documentation for the module before generating the commands file.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will compact the generated MAML. This will be ignored if -Refresh is not passed, since no new MAML will be generated.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
The name of the combined script. By default, allcommands.ps1.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
false | 2 | true (ByPropertyName) |
The root directories containing functions. If not provided, the function root will be the module root.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) |
If set, the function roots will not be recursively searched.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
The encoding of the combined script. By default, UTF8.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Encoding] |
false | 3 | true (ByPropertyName) |
A list of wildcards to exclude. This list will always contain the ScriptName.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) |
If set, the generate MAML will not contain a version number.
This slightly reduces the size of the MAML file, and reduces the rate of changes in the MAML file.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If provided, will save the MAML to a different directory than the current UI culture.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[CultureInfo] |
false | named | true (ByPropertyName) |
If set, will return the files that were generated.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
System.Nullable
System.IO.FileInfo
Install-MAML [-Module] <String[]> [-NoRefresh] [-Compact] [[-ScriptName] <String>] [-FunctionRoot <String[]>] [-NoRecurse] [[-Encoding] <Encoding>] [-Exclude <String[]>] [-NoVersion] [-Culture <CultureInfo>] [-PassThru] [<CommonParameters>]
Adding a footer
Testing if custom sidebar overrides automatic