Skip to content

Get-PSResource should be decorated with OutputTypeAttribute #635

@SeeminglyScience

Description

@SeeminglyScience

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions