From 04026d25722772f2099c993ee70ded05e4fa4902 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sun, 21 Dec 2025 17:46:22 -0500 Subject: [PATCH] Update samy.functions.ps1 --- samy.functions.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/samy.functions.ps1 b/samy.functions.ps1 index 8492797..7f363dc 100644 --- a/samy.functions.ps1 +++ b/samy.functions.ps1 @@ -84,3 +84,18 @@ function Initialize-NuGetProvider { # You can choose to throw here if you want hard-fail behavior } } + +#region App handlers + + function Invoke-Install1Password { param($Context) + try { + winget install --id=1Password.1Password --silent --accept-package-agreements --accept-source-agreements + Write-LogHybrid "Installed 1Password via winget" Success SVSApps -LogToEvent + Send-Text $Context "1Password installed" + } catch { + Write-LogHybrid "1Password install failed: $($_.Exception.Message)" Error SVSApps -LogToEvent + Send-Text $Context "ERROR: $($_.Exception.Message)" + } + } + +#endregion App handlers