Update samy.functions.ps1
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user