You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next batch of OPS changes - multiple bug fixes (#697)
* Implement Show-PreviewHelp and New-HelpCabinetFile in psm1.
update psd1 for psm1.
add tests borrowed from v1.
* Fix markdown parser to handle empty alias section.
Fix for issue 391
Add tests for same.
Add a helper for identifying an about_Topic in ProbeInfo.
Add Get-Date.V2.md as an asset.
* Revamp Update cmdlets
- refactor into mergeutil class.
- Both Update-CommandHelp and Update-MarkdownCommandHelp use same routine.
- fix cmdlet transformer to not mess up the parameter order.
- Don't abbreviate switch parameter.
- Change parameter type to use PowerShell style '[' rather than c# '<' for generic types.
* use constants rather than strings in the transformer.
* Change type of cmdlet alias property.
- It is now a string rather than a list of strings.
- Update tests to handle the change.
Support example title with markdown changes.
- Add test for example title which includes emphasized text.
* Fix up some issues in the cab builder.
Also add tests for Show-HelpPreview
* Remove references to System.Text.Json.
Use the deserialization message to help the user locate the bad yaml.
* Fix tsaoptions areaPath.
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,"Syntaxes are the same",DiagnosticSeverity.Information,"TryGetMergedSyntax",-1));
168
-
returnfalse;
169
-
}
170
-
171
-
// We believe the command as a source over the help.
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,$"Syntax for {syntax.ParameterSetName} is not found.",DiagnosticSeverity.Information,"TryGetMergedSyntax",-1));
179
-
mergedSyntax.Add(syntax);
180
-
}
181
-
else
182
-
{
183
-
if(cmdletSyntax==syntax)
184
-
{
185
-
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,$"Syntaxes for {syntax.ParameterSetName} are the same.",DiagnosticSeverity.Information,"TryGetMergedSyntax",-1));
186
-
mergedSyntax.Add(syntax);
187
-
}
188
-
else
189
-
{
190
-
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,$"Updating syntax for {cmdletSyntax.ParameterSetName}.",DiagnosticSeverity.Information,"TryGetMergedSyntax",-1));
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,$"Adding missing syntax for {missing.ParameterSetName}",DiagnosticSeverity.Information,"TryGetMergedSyntax",-1));
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,"Parameters are the same",DiagnosticSeverity.Information,"TryGetMergedParameters",-1));
217
-
returnfalse;
218
-
}
219
-
220
-
// dynamic parameters are currently unhandled on the command side.
221
-
// They will still be copied if they are in the help.
222
-
foreach(varparaminfromCommand)
223
-
{
224
-
// We should find 0 or 1 parameters that have the same name as the parameter in the cmdlet.
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,$"updating {param.Name}, not found in help.",DiagnosticSeverity.Information,"TryGetMergedParameters",-1));
230
-
varnewParameter=newParameter(param)
231
-
{
232
-
Description="**FILL IN DESCRIPTION**"
233
-
};
234
-
mergedParameters.Add(param);
235
-
}
236
-
elseif(helpParam==param)
237
-
{
238
-
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,$"No change to {param.Name}.",DiagnosticSeverity.Information,"TryGetMergedParameters",-1));
diagnosticMessages.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,$"adding {param.Name}, parameter found in help.",DiagnosticSeverity.Information,"TryGetMergedParameters",-1));
diagnostics.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,"Input/Output are the same",DiagnosticSeverity.Information,"TryGetMergedInputOutput",-1));
diagnostics.Add(newDiagnosticMessage(DiagnosticMessageSource.Merge,"Input/Output names are the same",DiagnosticSeverity.Information,"TryGetMergedInputOutput",-1));
0 commit comments