@autorest/powershell 4.0.679 → 4.0.681

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@
75
75
  "powershell/models/model-extensions.ts": "f0c617b9bfb04b4424a853e1b1eecba9059ba788",
76
76
  "powershell/module/module-class.ts": "2f8b0b4d28f59761dbe9a95bf7555c8ec0585387",
77
77
  "powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
78
- "powershell/package.json": "ce135a84c1f8da2f9d9eddecbcb7cef18b2be5cc",
78
+ "powershell/package.json": "4b44c1b496b56622ba4dfd076d44ecf4586ac797",
79
79
  "powershell/plugins/add-azure-completers-v2.ts": "3b1ddf7a067dbac2f07561fb3f6cbf1b66e555aa",
80
80
  "powershell/plugins/create-commands-v2.ts": "2ad0265c6a8fe77faaccb22da437754747947aaf",
81
81
  "powershell/plugins/cs-namer-v2.ts": "1b64031416f18b604950012b5683758adefce535",
@@ -228,7 +228,7 @@
228
228
  "powershell/resources/psruntime/BuildTime/Models/PsHelpTypes.cs": "34d832146757eab7d8e1bd3feba5d411577f388a",
229
229
  "powershell/resources/psruntime/BuildTime/Models/PsMarkdownTypes.cs": "c2c068932d2e4ab31a46d566e7b24f357f68c6f8",
230
230
  "powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs": "7c04bdae14142b93a1ddde2afefa36a85585b00e",
231
- "powershell/resources/psruntime/BuildTime/Models/PsProxyTypes.cs": "1c1081400b0fac6e4d1be5fb6c3f23eeda7ef0ec",
231
+ "powershell/resources/psruntime/BuildTime/Models/PsProxyTypes.cs": "02649181d9f3223a04c050c5480d07a751ba7a1e",
232
232
  "powershell/resources/psruntime/BuildTime/PsAttributes.cs": "06d994f77ab1052048edccf0d2b6ba7e6021ce0a",
233
233
  "powershell/resources/psruntime/BuildTime/PsExtensions.cs": "52083232ddc161a0f41496cbdf979d709c490194",
234
234
  "powershell/resources/psruntime/BuildTime/PsHelpers.cs": "c9bae00316dedb24a93eeebf73b2728fe9447494",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/powershell",
3
- "version": "4.0.679",
3
+ "version": "4.0.681",
4
4
  "description": "AutoRest PowerShell Cmdlet Generator",
5
5
  "main": "dist/exports.js",
6
6
  "typings": "dist/exports.d.ts",
@@ -308,10 +308,10 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
308
308
  IsMandatory = ParameterAttribute.Mandatory;
309
309
 
310
310
  var complexParameterName = ParameterName.ToUpperInvariant();
311
- var complexMessage = $"{Environment.NewLine}.";
311
+ var complexMessage = $"{Environment.NewLine}";
312
312
  var description = ParameterAttribute.HelpMessage.NullIfEmpty() ?? HelpInfo.Description.NullIfEmpty() ?? InfoAttribute?.Description.NullIfEmpty() ?? String.Empty;
313
313
  // Remove the complex type message as it will be reinserted if this is a complex type
314
- description = description.NormalizeNewLines().Replace(complexMessage, String.Empty).Replace(complexMessage.ToPsSingleLine(), String.Empty);
314
+ description = description.NormalizeNewLines();
315
315
  // Make an InfoAttribute for processing only if one isn't provided
316
316
  InfoAttribute = Attributes.OfType<InfoAttribute>().FirstOrDefault() ?? new InfoAttribute { PossibleTypes = new[] { ParameterType.Unwrap() }, Required = IsMandatory };
317
317
  // Set the description if the InfoAttribute does not have one since they are exported without a description