-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
web.ps1
14 lines (12 loc) · 649 Bytes
/
web.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[System.Net.ServicePointManager]::SecurityProtocol = "$([System.Net.ServicePointManager]::SecurityProtocol),Tls11,Tls12"
$web = New-Object -TypeName System.Net.WebClient
$web.UseDefaultCredentials = $true
$uri = 'https://raw.githubusercontent.com/nightroman/FarNet/main/PowerShellFar/Modules/FarPackage/FarPackage.psm1'
Write-Host "Importing $uri"
Invoke-Expression $web.DownloadString($uri)
Write-Host @'
Imported commands (for more details use: Get-Help <command>):
Install-FarPackage - installs or updates one package
Update-FarPackage - updates all installed packages
Uninstall-FarPackage - removes the specified package
'@