Improvements and bug fixes

dcl, dcll and dcre were brokeen, fixed that
Invoke-WebDownload given a URL, automatically deduce the file file.
Get-GitHubReleaseAssets - Grab URLs from a GitHub release page.
Invoke-DockerCompose updated to display progress while waiting on
background jobs.
This commit is contained in:
lksz 2021-02-10 18:26:48 -05:00
parent 53226f09b4
commit f947b0b3b4
7 changed files with 122 additions and 21 deletions

View file

@ -0,0 +1,18 @@
[CmdletBinding()]param(
[Parameter(Mandatory)]
[string]$GitHubProject,
[string]$tag='latest',
[Alias("Match")]
[string]$MatchPattern
)
filter Out-Matched { $_ | Where-Object { $_ -match $MatchPattern } }
Set-Alias FinalOutput Out-Default
if( $MatchPattern ) { Set-Alias FinalOutput Out-Matched }
Invoke-WebRequest https://github.com/$GitHubProject/releases/$tag -ErrorAction Stop |
Select-Object -ExpandProperty Links |
Where-Object href -match 'download/.*' |
Select-Object -ExpandProperty href |
ForEach-Object { "https://github.com$_" } |
FinalOutput

6
GitHub/_.package.json Normal file
View file

@ -0,0 +1,6 @@
{
"package": {
"Condition": [],
"Name": "GitHub"
}
}