2024-08-07 21:22:04 +00:00
|
|
|
param (
|
|
|
|
$Action,
|
|
|
|
[hashtable] $Arguments
|
|
|
|
)
|
|
|
|
|
2024-09-23 01:33:17 +00:00
|
|
|
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
2024-08-07 21:22:04 +00:00
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
|
|
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
|
|
|
|
2024-08-23 21:53:48 +00:00
|
|
|
& {
|
|
|
|
param($Parameters)
|
|
|
|
$base = "$PSScriptRoot/../../../Common/Software/Oh My Posh/Manage.ps1";
|
|
|
|
|
|
|
|
Start-SoftwareInstaller @Parameters `
|
|
|
|
-Installer {
|
|
|
|
Install-WingetPackage JanDeDobbeleer.OhMyPosh -ArgumentList "--scope","machine";
|
|
|
|
} `
|
|
|
|
-Configurator {
|
|
|
|
. $base -Action ([InstallerAction]::Configure);
|
|
|
|
} `
|
|
|
|
-UserConfigurator {
|
|
|
|
. $base -Action ([InstallerAction]::ConfigureUser);
|
|
|
|
};
|
|
|
|
} $PSBoundParameters;
|