-
Notifications
You must be signed in to change notification settings - Fork 10
Edit CommandDocumentation
dscbot edited this page May 29, 2024
·
2 revisions
Edits the documentation for a command by parsing the comment-based help from the source file.
Edit-CommandDocumentation [-FilePath] <FileInfo> [<CommonParameters>]
Edits the documentation for a command by parsing the comment-based help from the source file.
$filePath = Get-Item -Path 'C:\Docs\MyCommand.md'
Edit-CommandDocumentation -FilePath $filePath -SourcePath 'C:\Scripts\MyCommand.ps1'
Edits the documentation for the command specified in the markdown file "C:\Docs\MyCommand.md" using the source file "C:\Scripts\MyCommand.ps1".
Specifies the FileInfo object of the markdown file containing the documentation being edited. This parameter is mandatory.
Type: FileInfo
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.