Skip to content

Remove unnecessary HelpUri parameter from New-MarkdownModuleFile and Update-MarkdownModuleFile cmdlets #740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/Command/NewMarkdownModuleFileCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ public sealed class NewMarkdownModuleFileCommand : PSCmdlet
[Parameter()]
public SwitchParameter Force { get; set; }

[Parameter]
[ValidateNotNullOrEmpty]
public string HelpUri { get; set; } = string.Empty;

[Parameter]
[ValidateNotNullOrEmpty]
public string HelpInfoUri { get; set; } = string.Empty;
Expand Down Expand Up @@ -131,7 +127,7 @@ protected override void EndProcessing()
foreach(var cmdHelp in group)
{
string description = Constants.FillInDescription;
if (! string.IsNullOrEmpty(cmdHelp.Synopsis))
if (! string.IsNullOrEmpty(cmdHelp.Synopsis))
{
description = cmdHelp.Synopsis;
}
Expand Down
3 changes: 0 additions & 3 deletions src/Command/UpdateMarkdownModuleFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ public sealed class UpdateMarkdownModuleFileCommand : PSCmdlet
[Parameter()]
public SwitchParameter Force { get; set; }

[Parameter]
[ValidateNotNullOrEmpty]
public string HelpUri { get; set; } = string.Empty;

[Parameter]
[ValidateNotNullOrEmpty]
Expand Down