mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Add missed Rust tools to the documentation for macOS (#2397)
* Add documentation for rust tools * Rename helpers
This commit is contained in:
@@ -24,11 +24,32 @@ function Get-RVersion {
|
||||
$rVersion = Run-Command "R --version | grep 'R version'" | Take-Part -Part 2
|
||||
return "R $rVersion"
|
||||
}
|
||||
|
||||
function Get-RustVersion {
|
||||
$rustVersion = Run-Command "rustc --version" | Take-Part -Part 1
|
||||
return "Rust $rustVersion"
|
||||
}
|
||||
|
||||
function Get-RustfmtVersion {
|
||||
$version = Run-Command "rustfmt --version" | Take-Part -Part 1
|
||||
return "Rustfmt $version"
|
||||
}
|
||||
|
||||
function Get-RustdocVersion {
|
||||
$version = Run-Command "rustdoc --version" | Take-Part -Part 1
|
||||
return "Rustdoc $version"
|
||||
}
|
||||
|
||||
function Get-RustCargoVersion {
|
||||
$version = Run-Command "cargo --version" | Take-Part -Part 1
|
||||
return "Cargo $version"
|
||||
}
|
||||
|
||||
function Get-RustClippyVersion {
|
||||
$version = Run-Command "cargo clippy --version" | Take-Part -Part 1
|
||||
return "Clippy $version"
|
||||
}
|
||||
|
||||
function Get-Bindgen {
|
||||
$bindgenVersion = Run-Command "bindgen --version" | Take-Part -Part 1
|
||||
return "Bindgen $bindgenVersion"
|
||||
@@ -446,4 +467,4 @@ function Get-SwiftLintVersion {
|
||||
function Get-PowershellVersion {
|
||||
$powershellVersion = Run-Command "powershell --version"
|
||||
return $powershellVersion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user