@autorest/powershell 3.0.479 → 3.0.480
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.
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"powershell/models/model-extensions.ts": "9394418ac00c3e8829760432053c087642e4222d",
|
|
72
72
|
"powershell/module/module-class.ts": "863c9fd1d0243cbe8ea6858932945f00221dd5b1",
|
|
73
73
|
"powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
|
|
74
|
-
"powershell/package.json": "
|
|
74
|
+
"powershell/package.json": "d5d3730451fd87f90d0590c1794597d4ca7885eb",
|
|
75
75
|
"powershell/plugins/add-azure-completers-v2.ts": "557ce4326318c82f91445490a162f20fa029fed3",
|
|
76
76
|
"powershell/plugins/create-commands-v2.ts": "fc36205364fa4d2aa9c0fc655dcd9a7f6f1d4063",
|
|
77
77
|
"powershell/plugins/cs-namer-v2.ts": "e294a2f5ac3db421d030a3bba8343a3d4a9ea6ab",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"powershell/readme.md": "fe572b3ccddf3809363aff0d673c01c04509a757",
|
|
87
87
|
"powershell/resources/assets/build-module.ps1": "64761cf5324d6ccc32bbb908c53eecabe81acbd0",
|
|
88
88
|
"powershell/resources/assets/check-dependencies.ps1": "3f0a7cf45f38f941138322906d14b4bfcf684ad5",
|
|
89
|
-
"powershell/resources/assets/create-model-cmdlets.ps1": "
|
|
89
|
+
"powershell/resources/assets/create-model-cmdlets.ps1": "dd3f8b745a2a6fb5b1bbd115ab64b0d0fdc725aa",
|
|
90
90
|
"powershell/resources/assets/custom/README.md": "b802db3b38ec4c5db299a62b98509315208e7a5f",
|
|
91
91
|
"powershell/resources/assets/docs/README.md": "63035d1e0c808d2ba3bed2f0a5ffe7fc48ecc377",
|
|
92
92
|
"powershell/resources/assets/examples/README.md": "a0ad7c4631b6944a22edd0c2d23fe0bc66365ac7",
|
package/package.json
CHANGED
|
@@ -104,7 +104,9 @@ function CreateModelCmdlet {
|
|
|
104
104
|
# check whether completer is needed
|
|
105
105
|
$completer = '';
|
|
106
106
|
if($Type.Split('.').Split('.')[-2] -eq 'Support') {
|
|
107
|
-
|
|
107
|
+
# If Type is an array, need to strip []
|
|
108
|
+
$strippedType = $Type.Replace('[]', '')
|
|
109
|
+
$completer += "`n [ArgumentCompleter([${strippedType}])]"
|
|
108
110
|
}
|
|
109
111
|
$ParameterDefineScript = "
|
|
110
112
|
[Parameter($ParameterDefineProperty)]${completer}
|