|
63 | 63 |
|
64 | 64 | $NEW_LINE = "`r`n";
|
65 | 65 | $BAR_LINE = "=============================================";
|
| 66 | +$SEC_LINE = "---------------------------------------------"; |
66 | 67 | $verbs_common_new = "VerbsCommon.New";
|
67 | 68 | $verbs_lifecycle_invoke = "VerbsLifecycle.Invoke";
|
68 | 69 | $client_model_namespace = $client_library_namespace + '.Models';
|
@@ -2078,7 +2079,8 @@ function Write-CLICommandFile
|
2078 | 2079 | $fileFullPath = $fileOutputFolder + '/' + 'cli.js';
|
2079 | 2080 |
|
2080 | 2081 | Write-Verbose "=============================================";
|
2081 |
| - Write-Verbose ("Writing CLI Command File: " + $NEW_LINE + $fileFullPath); |
| 2082 | + Write-Verbose "Writing CLI Command File: "; |
| 2083 | + Write-Verbose $fileFullPath; |
2082 | 2084 | Write-Verbose "=============================================";
|
2083 | 2085 |
|
2084 | 2086 | $codeContent =
|
@@ -2200,15 +2202,29 @@ else
|
2200 | 2202 | $st = mkdir -Force $opOutFolder;
|
2201 | 2203 |
|
2202 | 2204 | $methods = $ft.GetMethods();
|
2203 |
| - foreach ($mt in $methods) |
| 2205 | + foreach ($mtItem in $methods) |
2204 | 2206 | {
|
| 2207 | + [System.Reflection.MethodInfo]$mt = $mtItem; |
2205 | 2208 | if ($mt.Name.StartsWith('Begin') -and $mt.Name.Contains('ing'))
|
2206 | 2209 | {
|
2207 |
| - # Skip 'BeginXXX' Calls for Now... |
| 2210 | + # Skip 'Begin*ing*' Calls for Now... |
2208 | 2211 | continue;
|
2209 | 2212 | }
|
2210 |
| - |
| 2213 | + |
| 2214 | + # Output Info for Method Signature |
| 2215 | + Write-Verbose ""; |
| 2216 | + Write-Verbose $SEC_LINE; |
2211 | 2217 | Write-Verbose $mt.Name.Replace('Async', '');
|
| 2218 | + foreach ($paramInfoItem in $mt.GetParameters()) |
| 2219 | + { |
| 2220 | + [System.Reflection.ParameterInfo]$paramInfo = $paramInfoItem; |
| 2221 | + if ($paramInfo.ParameterType.Name -ne 'CancellationToken') |
| 2222 | + { |
| 2223 | + Write-Verbose ("-" + $paramInfo.Name + " : " + $paramInfo.ParameterType); |
| 2224 | + } |
| 2225 | + } |
| 2226 | + Write-Verbose $SEC_LINE; |
| 2227 | + |
2212 | 2228 | $outputs = Write-OperationCmdletFile $opOutFolder $opShortName $mt $invoke_cmdlet_class_name $parameter_cmdlet_class_name;
|
2213 | 2229 | if ($outputs.Count -ne $null)
|
2214 | 2230 | {
|
|
0 commit comments