Merge branch 'main' into pipx-windows

This commit is contained in:
Maxim Lobanov
2020-11-05 10:50:57 +03:00
committed by GitHub
30 changed files with 908 additions and 67 deletions

View File

@@ -262,6 +262,17 @@ function Get-CachedDockerImages {
return (docker images --digests --format "* {{.Repository}}:{{.Tag}}").Split("*") | Where-Object { $_ }
}
function Get-CachedDockerImagesTableData {
return (docker images --digests --format "*{{.Repository}}:{{.Tag}}|{{.Digest}} |{{.CreatedAt}}").Split("*") | Where-Object { $_ } | ForEach-Object {
$parts=$_.Split("|")
[PSCustomObject] @{
"Repository:Tag" = $parts[0]
"Digest" = $parts[1]
"Created" = $parts[2].split(' ')[0]
}
}
}
function Get-PacmanVersion {
$msys2BinDir = "C:\msys64\usr\bin"
$pacmanPath = Join-Path $msys2BinDir "pacman.exe"
@@ -285,4 +296,4 @@ function Get-YAMLLintVersion {
function Get-PipxVersion {
$pipxVersion = pipx --version
return "Pipx $pipxVersion"
}
}