Skip to content

Commit

Permalink
Change existing functions to only allowed verbs for #13
Browse files Browse the repository at this point in the history
  • Loading branch information
gitfvb committed Jul 19, 2024
1 parent 5dde4b9 commit 8fec975
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion AptecoPSFramework/AptecoPSFramework.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ RequiredModules = @(

# 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 = @(

"Add-PluginFolder"
"Export-Settings"
"Get-Debug"
Expand All @@ -107,6 +108,7 @@ FunctionsToExport = @(
#"Set-ProcessIdentifier"
"Set-Settings"
"Install-Plugin"

"Open-DuckDBConnection"
"Get-DuckDBConnection"
"Close-DuckDBConnection"
Expand All @@ -116,12 +118,14 @@ FunctionsToExport = @(
"Add-DuckDBConnection"
"Get-DebugMode"
"Import-Lib"

"Add-JobLog"
"Get-JobLog"
"Update-JobLog"
"Set-JobLogDatabase"
"Close-JobLogDatabase"
#"Clean-JobLogDatabase"

) #'*'

# 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.
Expand Down Expand Up @@ -164,7 +168,6 @@ PrivateData = @{

# 'ReleaseNotes' des Moduls
ReleaseNotes = '
Feature: Improved the whole exception handling for all parts in the framework, so the messaging should be more clear, if problems occur
Feature: Changed the way Apteco email builds up arrays, so the performance in loading contactlists should be a little bit better
Feature: Added SimplySql in the new version 2 to the dependencies
Expand All @@ -173,6 +176,8 @@ PrivateData = @{
Feature: Improved Performance for DuckDB reader (e.g. 5 seconds for 150k rows instead of 70 seconds)
Feature: Improved handling for sniffing csv files with DuckDB (example is in help)
Fix: API Ratelimiting could cause problems when also containing whitespace, this has been fixed
Fix: Renaming Prepare-MultipartUpload to ConvertTo-MultipartUpload to only use allowed verbs
Fix: Renaming Prompt-Choice to Request-Choice to only use allowed verbs
0.3.3 Fix: Setting a default logfile at the start of the module load named "logfile.log"
Fix: Reflected a new flag for installing dependencies so that DuckDB is not installing all dependent packages of DuckDB.NET
Fix: Improved the error handling and messaging for loading settings files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ function Invoke-Upload{
#-----------------------------------------------

# A certain method to correctly invoke
$multipart = Prepare-MultipartUpload -string $csvString
$multipart = ConvertTo-MultipartUpload -string $csvString

# Dem server gibt man Informationen mit über das Format, was es für den server leichter macht
$object = "imports/recipients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ if ($params.ListName -eq "" -or $null -eq $params.ListName -or $params.MessageNa
#-----------------------------------------------
# A certain method to correctly invoke
$multipart = Prepare-MultipartUpload -string $csvString
$multipart = ConvertTo-MultipartUpload -string $csvString
# Dem server gibt man Informationen mit über das Format, was es für den server leichter macht
$object = "imports/recipients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $choiceMatchedWithArray = $stringArray[$choice -1]
#>

Function Prompt-Choice {
Function Request-Choice {

param(
[Parameter(Mandatory=$true)][string]$title
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


Function Prepare-MultipartUpload {
Function ConvertTo-MultipartUpload {
param(
[Parameter(Mandatory=$true)][String]$path,
[Parameter(Mandatory=$false)]$part = $false
Expand Down

0 comments on commit 8fec975

Please sign in to comment.