Skip to content

Commit b708a4a

Browse files
feat: Import-OpenXML ( Fixes #14 )
1 parent 2319f8d commit b708a4a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Commands/Import-OpenXML.ps1

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
function Import-OpenXML {
2+
<#
3+
.SYNOPSIS
4+
Imports OpenXML
5+
.DESCRIPTION
6+
Imports OpenXML packages in PowerShell.
7+
.EXAMPLE
8+
$excelFile = Import-OpenXML ./a.xlsx
9+
.LINK
10+
Get-OpenXML
11+
#>
12+
[Alias('Restore-OpenXML','Open-OpenXML')]
13+
param(
14+
# The path to the file
15+
[Parameter(Mandatory,ValueFromPipelineByPropertyName)]
16+
[string]
17+
$FilePath
18+
)
19+
20+
process {
21+
Get-OpenXML @PSBoundParameters
22+
}
23+
}

0 commit comments

Comments
 (0)