Skip to content

Remove ModuleManifestComments

Nick Spreitzer edited this page Aug 18, 2019 · 7 revisions

external help file: RemoveModuleManifestComments-help.xml Module Name: WhatsNew schema: 2.0.0

Remove-ModuleManifestComments

SYNOPSIS

Removes comments from module manifest files.

SYNTAX

Remove-ModuleManifestComments [-ManifestPath] <String> [-NoConfirm] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Removes all comments from PowerShell module manifests. The end result is a file that's less cluttered and easier to read.

EXAMPLES

Example 1

PS C:\> Remove-ModuleManifestComments ".\MyManifest.psd1" -NoConfirm

Loads .\MyManifest.psd1, removes all comments, and overwrites the existing file without confirming.

PARAMETERS

-ManifestPath

The path to the module manifest file.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-NoConfirm

Do not confirm before overwriting the manifest file.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

NOTES

RELATED LINKS

https://github.com/refactorsaurusrex/whats-new/wiki/Cmdlet-and-Function-Overview#remove-modulemanifestcomments

Clone this wiki locally