Failed to get document definitions with selectors
BernieWhite opened this issue · comments
Bernie White commented
Description of the issue
When a document definition uses a selector Get-PSDocument
always errors. This is because selectors are only imported in the invoke pipeline.
Expected behaviour
Selectors should be imported for get pipeline.
Error output
The selector 'example' specified for definition at file.ps1 line 0 could not be found.
Module in use and version:
- Module: PSDocs
- Version: 0.9.0-B2107010
Captured output from $PSVersionTable
:
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0