Add Bazelisk support to Linux and Windows (#490)

* added bazelisk

* moved bazelisk installation to bazel

* changed Validate-Bazel.ps1

* removed Install-Bazelisk.ps1

* changed bazel and bazelisk version output

* fixed Validate-Bazel.ps1

* removed the extra "$" character
This commit is contained in:
Maxim Lobanov
2020-03-05 10:30:24 +03:00
committed by GitHub
parent a94c37ae3e
commit 5a2acbc6f0
6 changed files with 54 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
################################################################################
## File: Validate-Bazel.ps1
## Desc: Validate Bazel
## Desc: Validate Bazel and Bazelisk (A user-friendly launcher for Bazel)
################################################################################
if (Get-Command -Name 'bazel')
@@ -13,11 +13,32 @@ else
exit 1
}
# Adding description of the software to Markdown
if (Get-Command -Name 'bazelisk')
{
Write-Host "bazelisk on path"
}
else
{
Write-Host 'bazelisk is not on path'
exit 1
}
# Adding description of Bazel to Markdown
$SoftwareName = "bazel"
$Description = @"
_Version:_ $(bazel --version)<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
# Adding description of Bazelisk to Markdown
$bazelisk_version = (bazelisk version | Select-String "Bazelisk version:").Split(":")[1]
$SoftwareName = "bazelisk"
$Description = @"
_Version:_ $bazelisk_version<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description