@autorest/powershell 3.0.520 → 3.0.522

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.
@@ -17,7 +17,7 @@
17
17
  "powershell/generators/AssemblyInfo.ts": "5430716273b60c4934c3e33e8757d4c39153013a",
18
18
  "powershell/generators/csproj.ts": "5f48aa9958116b1bcb16cd435650db31f3c45d97",
19
19
  "powershell/generators/gitattributes.ts": "e3467fba6c42fb795a1b1c121382354057ffc094",
20
- "powershell/generators/gitignore.ts": "e04ccea0455a67ab85929e0a8fd7db184735d1f3",
20
+ "powershell/generators/gitignore.ts": "098e3cc087dee3c9b2c3b9beb34a40660f74e05a",
21
21
  "powershell/generators/nuspec.ts": "d6773154e167a9cf4bec08c48f4cc56b7e28cc5d",
22
22
  "powershell/generators/psm1.custom.ts": "7977240814d1a71c9ab05dc51d0266fa505a4833",
23
23
  "powershell/generators/psm1.internal.ts": "76911b9c45af5a17197c1c8e5db7ebe6c9afea4e",
@@ -73,7 +73,7 @@
73
73
  "powershell/models/model-extensions.ts": "92f57419e2bb8aec5272d62742ad528caebb66f4",
74
74
  "powershell/module/module-class.ts": "c1a2dcfbb394b739a553c7fa9dab6f03cfe1103f",
75
75
  "powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
76
- "powershell/package.json": "95c9b4af353b457c9747caa97dd46c98a3d28772",
76
+ "powershell/package.json": "a13d312951b77df9e4ef42fc719624756589b9bd",
77
77
  "powershell/plugins/add-azure-completers-v2.ts": "557ce4326318c82f91445490a162f20fa029fed3",
78
78
  "powershell/plugins/create-commands-v2.ts": "0190353c046a386a6458d2394377da59ae271643",
79
79
  "powershell/plugins/cs-namer-v2.ts": "e294a2f5ac3db421d030a3bba8343a3d4a9ea6ab",
@@ -95,7 +95,7 @@
95
95
  "powershell/resources/assets/export-surface.ps1": "b97888449ac519ffe26d3f6dddef18b7be7c96d4",
96
96
  "powershell/resources/assets/exports/README.md": "c8a90f9d2e9134c3366ae18eb6f2d5f169a8ee4b",
97
97
  "powershell/resources/assets/generate-help.ps1": "376c95fac5b8953b5cd45895d7df475c5d3c09be",
98
- "powershell/resources/assets/generate-portal-ux.ps1": "2ed86b9cd74f0801ee0bddaba27f097a07b80c9a",
98
+ "powershell/resources/assets/generate-portal-ux.ps1": "f95ac7b9764f920899dd8d49bc43ca32b9df30f7",
99
99
  "powershell/resources/assets/how-to.md": "a2fc9c53d35275e0e4cd8423e4e194744d359afd",
100
100
  "powershell/resources/assets/internal/README.md": "ec115a67f403df03f07892213b3b9e83867cdd41",
101
101
  "powershell/resources/assets/license.txt": "b9f3180fb9aff09aa7665db6b3226e492f670be6",
@@ -1 +1 @@
1
- {"version":3,"file":"gitignore.d.ts","sourceRoot":"","sources":["../../generators/gitignore.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,OAAO,iBAmBvD"}
1
+ {"version":3,"file":"gitignore.d.ts","sourceRoot":"","sources":["../../generators/gitignore.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,OAAO,iBAiBvD"}
@@ -12,8 +12,6 @@ generated
12
12
  internal
13
13
  exports
14
14
  tools
15
- custom/*.psm1
16
- custom/autogen-model-cmdlets
17
15
  test/*-TestResults.xml
18
16
  license.txt
19
17
  /*.ps1
@@ -1 +1 @@
1
- {"version":3,"file":"gitignore.js","sourceRoot":"","sources":["../../generators/gitignore.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAKzF,KAAK,UAAU,iBAAiB,CAAC,OAAgB;IACtD,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE;;;;;;;;;;;;;;;;;UAiBnC,EAAE,SAAS,EAAE,mBAAmB,CAAC,CAAC;AAC5C,CAAC;AAnBD,8CAmBC"}
1
+ {"version":3,"file":"gitignore.js","sourceRoot":"","sources":["../../generators/gitignore.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAKzF,KAAK,UAAU,iBAAiB,CAAC,OAAgB;IACtD,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE;;;;;;;;;;;;;;;UAenC,EAAE,SAAS,EAAE,mBAAmB,CAAC,CAAC;AAC5C,CAAC;AAjBD,8CAiBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/powershell",
3
- "version": "3.0.520",
3
+ "version": "3.0.522",
4
4
  "description": "AutoRest PowerShell Cmdlet Generator",
5
5
  "main": "dist/exports.js",
6
6
  "typings": "dist/exports.d.ts",
@@ -237,7 +237,16 @@ function New-MetadataForParameterSet()
237
237
  $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
238
238
  $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
239
239
  [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
240
+ if ($Null -eq $example)
241
+ {
242
+ $example = @()
243
+ }
244
+
240
245
  [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
246
+ if ($Null -eq $signature)
247
+ {
248
+ $signature = @()
249
+ }
241
250
 
242
251
  return @{
243
252
  Path = $httpPath