Skip to content

Alignment is off in Get-AzContext -ListAvailable | Out-ConsoleGridView #104

@Agazoth

Description

@Agazoth

Get-AzContext -ListAvailable with a mix of contexts that have very long and very short (renamed) names, Out-ConsoleGridView aligns the objects wierd.

Not sure if this is caused by the objects from Get-AzContext -ListAvailable or by Out-ConsoleGridView.

Reproduce:
Have 2 or more AzContexts. Rename one of them to something short. run:

Get-AzContext -ListAvailable | Out-ConsoleGridView

image

Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Name                           Value
----                           -----
PSVersion                      7.1.0-preview.7
PSEdition                      Core
GitCommitId                    7.1.0-preview.7
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     0.4.1                 Microsoft.PowerShell.ConsoleGuiToo… Core      {Out-ConsoleGridView, ocgv}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module-ConsoleGuiToolsThis issue is about Microsoft.PowerShell.ConsoleGuiToolsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions