mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-11 05:43:17 +00:00
Set [Parameters] explicitly
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
RootModule = 'ImportExcel.psm1'
|
RootModule = 'ImportExcel.psm1'
|
||||||
|
|
||||||
# Version number of this module.
|
# Version number of this module.
|
||||||
ModuleVersion = '1.90'
|
ModuleVersion = '1.91'
|
||||||
|
|
||||||
# ID used to uniquely identify this module
|
# ID used to uniquely identify this module
|
||||||
GUID = '60dd4136-feff-401a-ba27-a84458c57ede'
|
GUID = '60dd4136-feff-401a-ba27-a84458c57ede'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Add-Type -Path "$($PSScriptRoot)\EPPlus.dll"
|
|||||||
function Import-Excel {
|
function Import-Excel {
|
||||||
param(
|
param(
|
||||||
[Alias("FullName")]
|
[Alias("FullName")]
|
||||||
[Parameter(ValueFromPipelineByPropertyName=$true, ValueFromPipeline=$true, Mandatory)]
|
[Parameter(ValueFromPipelineByPropertyName=$true, ValueFromPipeline=$true, Mandatory=$true)]
|
||||||
$Path,
|
$Path,
|
||||||
[Alias("Sheet")]
|
[Alias("Sheet")]
|
||||||
$WorkSheetname=1,
|
$WorkSheetname=1,
|
||||||
@@ -155,9 +155,9 @@ function ConvertFrom-ExcelSheet {
|
|||||||
|
|
||||||
function Export-MultipleExcelSheets {
|
function Export-MultipleExcelSheets {
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory=$true)]
|
||||||
$Path,
|
$Path,
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory=$true)]
|
||||||
[hashtable]$InfoMap,
|
[hashtable]$InfoMap,
|
||||||
[string]$Password,
|
[string]$Password,
|
||||||
[Switch]$Show,
|
[Switch]$Show,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ $p = @{
|
|||||||
NuGetApiKey = $NuGetApiKey
|
NuGetApiKey = $NuGetApiKey
|
||||||
LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt"
|
LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt"
|
||||||
Tag = "Excel","EPPlus","Export","Import"
|
Tag = "Excel","EPPlus","Export","Import"
|
||||||
ReleaseNote = "Fixed v3.0 bug, added -HeaderRow, added Help for Export-Excel"
|
ReleaseNote = "Fixed parameters and explicitly marked as $true"
|
||||||
ProjectUri = "https://github.com/dfinke/ImportExcel"
|
ProjectUri = "https://github.com/dfinke/ImportExcel"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user