Skip to content

[Feature] - Support Deserialized.System.IO.FileInfo #61

Description

@mattcargile

Expected Behavior

Output icons and colorization after running Invoke-Command -ComputerName . -ScriptBlock { Get-ChildItem }

Current Behavior

Current behavior is empty data.

Possible Solution

Edit Format-TerminalIcons and Resolve-Icon to support Deserialized.System.IO.FileInfo

Context

I'd like to have the colorization when running Invoke-Command

Workaround

I added if ( $_.psobject.TypeNames -like 'Deserialized*' ) {$_.Name} else { Terminal-Icons\Format-TerminalIcons $_ } to my ps1xml file.

Your Environment

  • Module version used: 0.5.2
  • Operating System and PowerShell version: Windows 10; Powershell 7.2.1

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions