Skip to content

Update about_Format.ps1xml with link to Export-FormatData, rewrite the authoring example to use it #2341

@mklement0

Description

@mklement0

about_Format.ps1xml currently:

  • neither mentions nor includes a "See Also" link to the closely related Export-FormatData cmdlet.

  • provides an authoring example that manually locates a built-in *.ps1xml file with instructions on how to manually extract parts of interest.

Leaving aside that locating *.ps1xml file for built-in formatting definitions doesn't work in PS Core (where these definitions are now compiled into the binary), using Get-FormatData ... | Export-FormatData as a starting point for creating custom definitions is much preferable.

Version(s) of document impacted

  • Impacts 6.1 document
  • Impacts 6.0 document
  • Impacts 5.1 document
  • Impacts 5.0 document
  • Impacts 4.0 document
  • Impacts 3.0 document

Metadata

Metadata

Assignees

Labels

Pri3Priority - Lowarea-utilityArea - Microsoft.PowerShell.Utility module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions