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:
parent
53226f09b4
commit
f947b0b3b4
7 changed files with 122 additions and 21 deletions
18
GitHub/Get-GitHubReleaseAssets.ps1
Normal file
18
GitHub/Get-GitHubReleaseAssets.ps1
Normal 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
6
GitHub/_.package.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"package": {
|
||||
"Condition": [],
|
||||
"Name": "GitHub"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue