From 0aa7f9e0600514d718ffb97173532f32de806077 Mon Sep 17 00:00:00 2001 From: KitsuneSolar Date: Sat, 18 Nov 2023 22:54:19 +0000 Subject: [PATCH] 2023-11-18 22:54:19 --- PkgStore.Kernel.psd1 | 4 ++-- Private/.gitkeep | 0 Public/Copy-Data.ps1 | 6 +++--- Public/Move-Data.ps1 | 6 +++--- Public/Test-Module.ps1 | 2 +- Public/Write-Msg.ps1 | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 Private/.gitkeep diff --git a/PkgStore.Kernel.psd1 b/PkgStore.Kernel.psd1 index cd6f275..a83570c 100644 --- a/PkgStore.Kernel.psd1 +++ b/PkgStore.Kernel.psd1 @@ -69,7 +69,7 @@ PowerShellVersion = '7.2' # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Copy-Data', 'Move-Data', 'New-Data', 'Remove-Data', 'Test-Data', +FunctionsToExport = 'Copy-Data', 'Move-Data', 'New-Data', 'Remove-Data', 'Test-Data', 'Test-Module', 'Write-Msg' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. @@ -96,7 +96,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'pwsh','kernel' + Tags = 'pwsh', 'kernel' # A URL to the license for this module. LicenseUri = 'https://github.com/pkgstore/pwsh-kernel/blob/main/LICENSE' diff --git a/Private/.gitkeep b/Private/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Public/Copy-Data.ps1 b/Public/Copy-Data.ps1 index 8be9b54..a25b182 100644 --- a/Public/Copy-Data.ps1 +++ b/Public/Copy-Data.ps1 @@ -6,9 +6,9 @@ function Copy-Data() { #> param ( - [Alias('S')][string]$Src, - [Alias('D')][string]$Dst + [Alias('S')][string]$SRC, + [Alias('D')][string]$DST ) - Copy-Item -LiteralPath "${Src}" -Destination "${Dst}" -Force + Copy-Item -LiteralPath "${SRC}" -Destination "${DST}" -Force } diff --git a/Public/Move-Data.ps1 b/Public/Move-Data.ps1 index 825a165..4fdf309 100644 --- a/Public/Move-Data.ps1 +++ b/Public/Move-Data.ps1 @@ -6,9 +6,9 @@ function Move-Data() { #> param ( - [Alias('S')][string]$Src, - [Alias('D')][string]$Dst + [Alias('S')][string]$SRC, + [Alias('D')][string]$DST ) - Move-Item -LiteralPath "${Src}" -Destination "${Dst}" -Force + Move-Item -LiteralPath "${SRC}" -Destination "${DST}" -Force } diff --git a/Public/Test-Module.ps1 b/Public/Test-Module.ps1 index 803fbfb..998fd43 100644 --- a/Public/Test-Module.ps1 +++ b/Public/Test-Module.ps1 @@ -6,7 +6,7 @@ function Test-Module() { #> Param( - [Parameter(Mandatory)][Alias('N')][string[]]$Names + [Alias('N')][string[]]$Names ) $Names | ForEach-Object { diff --git a/Public/Write-Msg.ps1 b/Public/Write-Msg.ps1 index 2c9eb3c..c9b5d0a 100644 --- a/Public/Write-Msg.ps1 +++ b/Public/Write-Msg.ps1 @@ -6,8 +6,8 @@ function Write-Msg() { #> param ( - [Alias('T')][string]$Type, - [Alias('M')][string]$Message, + [string]$Type, + [string]$Message, [Alias('A')][string]$Action = 'Continue' )