Redirect parameters using args

This commit is contained in:
Manuel Thalmann 2024-09-30 05:00:20 +02:00
parent 68e679224f
commit 14b0ffe24b
47 changed files with 75 additions and 366 deletions
scripts/Common/Software/git

View file

@ -1,17 +1,8 @@
param (
$Action,
[hashtable] $Arguments
)
. "$PSScriptRoot/../../Scripts/Software.ps1";
. "$PSScriptRoot/../../Scripts/System.ps1";
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
& {
param(
[hashtable] $Parameters
)
$configure = {
param(
[string] $User
@ -100,9 +91,9 @@ param (
}
};
Start-SoftwareInstaller @Parameters `
Start-SoftwareInstaller @args `
-Configurator {
& $configure;
& $configure @args;
} `
-UserConfigurator {
param(
@ -111,4 +102,4 @@ param (
& $configure -User $Arguments.Name;
};
} $PSBoundParameters;
} @args;