Skip to content

Commit 3255783

Browse files
committed
fixed F&O compatibility issues by proxying all relevant Out-* cmdlets; all special handing of the __FormatData property has been moved into OutProxyCmdletHelper so that we can keep code as DRY as possible; help updated to include new proxy cmdlets
1 parent 0b0a646 commit 3255783

7 files changed

+1028
-9
lines changed

FormatPx.dll

512 Bytes
Binary file not shown.

FormatPx.psd1

+8-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ to objects rather than replacing objects with format data. This allows for
88
data processing to continue beyond Format-* cmdlets, without losing any of the
99
capabilities of the formatting engine in PowerShell.
1010
11-
Copyright 2014 Kirk Munro
11+
Copyright 2015 Kirk Munro
1212
1313
Licensed under the Apache License, Version 2.0 (the "License");
1414
you may not use this file except in compliance with the License.
@@ -26,15 +26,15 @@ limitations under the License.
2626
@{
2727
ModuleToProcess = 'FormatPx.psm1'
2828

29-
ModuleVersion = '1.0.2.3'
29+
ModuleVersion = '1.0.3.4'
3030

3131
GUID = 'caba4410-d4b8-4f84-bb28-4391ed908cc2'
3232

3333
Author = 'Kirk Munro'
3434

3535
CompanyName = 'Poshoholic Studios'
3636

37-
Copyright = 'Copyright 2014 Kirk Munro'
37+
Copyright = 'Copyright 2015 Kirk Munro'
3838

3939
Description = 'FormatPx separates the formatting layer from the data processing layer in PowerShell. By default, PowerShell''s native Format-* cmdlets convert data objects into format objects when are then rendered in the console. This reduces the usefulness of the Format-* cmdlets, making it harder to work with formatting in PowerShell. FormatPx fixes this problem by attaching format data to objects rather than replacing objects with format data. This allows for data processing to continue beyond Format-* cmdlets, without losing any of the capabilities of the formatting engine in PowerShell.'
4040

@@ -56,6 +56,10 @@ limitations under the License.
5656
'Format-Table'
5757
'Format-Wide'
5858
'Out-Default'
59+
'Out-File'
60+
'Out-Host'
61+
'Out-Printer'
62+
'Out-String'
5963
)
6064

6165
AliasesToExport = @(
@@ -74,7 +78,7 @@ limitations under the License.
7478

7579
PrivateData = @{
7680
PSData = @{
77-
Tags = 'format Format-Table Format-List Format-Wide Format-Custom Format-Default Out-Default'
81+
Tags = 'format Format-Table Format-List Format-Wide Format-Custom Format-Default Out-Default Out-File Out-Host Out-Printer Out-String'
7882
LicenseUri = 'http://apache.org/licenses/LICENSE-2.0.txt'
7983
ProjectUri = 'https://github.com/KirkMunro/FormatPx'
8084
IconUri = ''

FormatPx.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ to objects rather than replacing objects with format data. This allows for
88
data processing to continue beyond Format-* cmdlets, without losing any of the
99
capabilities of the formatting engine in PowerShell.
1010
11-
Copyright 2014 Kirk Munro
11+
Copyright 2015 Kirk Munro
1212
1313
Licensed under the Apache License, Version 2.0 (the "License");
1414
you may not use this file except in compliance with the License.

NOTICE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FormatPx
2-
Copyright 2014 Kirk Munro
2+
Copyright 2015 Kirk Munro
33

44
This product includes software developed by Kirk Munro (http://kirkmunro.com).

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ the formatting engine in PowerShell.
1818

1919
### License and Copyright
2020

21-
Copyright 2014 Kirk Munro
21+
Copyright 2015 Kirk Munro
2222

2323
Licensed under the Apache License, Version 2.0 (the "License");
2424
you may not use this file except in compliance with the License.

en-us/FormatPx.dll-Help.xml

+1,015
Large diffs are not rendered by default.

scripts/Export-BinaryModule.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ to objects rather than replacing objects with format data. This allows for
88
data processing to continue beyond Format-* cmdlets, without losing any of the
99
capabilities of the formatting engine in PowerShell.
1010
11-
Copyright 2014 Kirk Munro
11+
Copyright 2015 Kirk Munro
1212
1313
Licensed under the Apache License, Version 2.0 (the "License");
1414
you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ limitations under the License.
2424
#############################################################################>
2525

2626
# Export the cmdlets that are defined in the nested module
27-
Export-ModuleMember -Cmdlet Format-Custom,Format-Default,Format-List,Format-Table,Format-Wide,Out-Default
27+
Export-ModuleMember -Cmdlet Format-Custom,Format-Default,Format-List,Format-Table,Format-Wide,Out-Default,Out-File,Out-Host,Out-Printer,Out-String
2828

2929
# Define a fd alias so that using Format-Default is easier.
3030
if (-not (Get-Alias -Name fd -ErrorAction Ignore)) {

0 commit comments

Comments
 (0)