Update samy.functions.ps1

This commit is contained in:
2025-12-21 17:46:22 -05:00
parent 08f46518f2
commit 04026d2572

View File

@@ -84,3 +84,18 @@ function Initialize-NuGetProvider {
# You can choose to throw here if you want hard-fail behavior # 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