Skip to content

Get-PSResource should be decorated with OutputTypeAttribute #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
SeeminglyScience opened this issue May 2, 2022 · 1 comment · Fixed by #706
Closed
3 tasks done

Get-PSResource should be decorated with OutputTypeAttribute #635

SeeminglyScience opened this issue May 2, 2022 · 1 comment · Fixed by #706

Comments

@SeeminglyScience
Copy link
Contributor

SeeminglyScience commented May 2, 2022

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

OutputTypeAttribute is what tells tab completion what type of object a command emits.

TabExpansion2 -inputScript ($s = 'Get-PSResource | % Versi') -cursorColumn $s.Length |
    % CompletionMatches

Expected behavior

CompletionText ListItemText ResultType ToolTip
-------------- ------------ ---------- -------
Version        Version        Property version Version { get; }

Actual behavior

<no results>

Error details

No response

Environment data

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     3.0.12     beta       PowerShellGet                       {Find-PSResource, Get-InstalledPSResource, Get-PSResourceRepository,
Name                           Value
----                           -----
PSVersion                      7.3.0-preview.3
PSEdition                      Core
GitCommitId                    7.3.0-preview.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

Visuals

No response

@SeeminglyScience SeeminglyScience changed the title Get-InstalledPSResource should be decorated with OutputTypeAttribute Get-PSResource should be decorated with OutputTypeAttribute May 2, 2022
@SydneyhSmith SydneyhSmith added Issue-Bug Something isn't working Area-GetPSResource and removed Needs-Triage labels May 5, 2022
@SydneyhSmith
Copy link
Collaborator

Thanks @SeeminglyScience we will do a pass through all of the cmdlets to make sure we fix this for all of them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants