Closed HCRitter closed 4 months ago
Hi,
the AutoCompleter for Get-M365 does not work, it don't points to: "$PSScriptRoot..\Internal\Collector"
its probably that the call of the Autocompleter to the function is not executed. if you switch from:
function Get-ValidComponentsValue { [CmdletBinding()] param() $AllCommands = Get-ChildItem -Path "$PSScriptRoot\..\Internal\Collector" -Directory return $AllCommands.Name } [ArgumentCompleter( { param( $Command, $Parameter, $WordToComplete, $CommandAst, $FakeBoundParams) Get-ValidComponentsValue } )]
to:
[ArgumentCompleter( { param( $Command, $Parameter, $WordToComplete, $CommandAst, $FakeBoundParams) (Get-ChildItem -Path "$PSScriptRoot\..\Internal\Collector" -Directory).Name } )]
it works
should I raise a PR?
Hi, strange, it works on my system without an issue.... what PS Version are you using?
No feedback. close
Hi,
the AutoCompleter for Get-M365 does not work, it don't points to: "$PSScriptRoot..\Internal\Collector"
its probably that the call of the Autocompleter to the function is not executed. if you switch from:
to:
it works
should I raise a PR?