tide/tests/rust.fish
2021-01-26 15:45:00 -08:00

26 lines
415 B
Fish

# RUN: %fish %s
function _rust
_tide_decolor (_tide_item_rust)
end
set -l rustDir ~/rustTest
mkdir -p $rustDir
cd $rustDir
mock rustc --version "echo rustc 1.30.0-beta"
set -lx tide_rust_verbose_version true
set -lx tide_rust_icon
touch blah.rs
_rust # CHECK:  1.30.0-beta
rm blah.rs
_rust # CHECK:
touch Cargo.toml
set -lx tide_rust_verbose_version false
_rust # CHECK:  1.30.0
rm -r $rustDir