tide/tests/_tide_item_terraform.test.fish
2023-12-24 11:21:59 -08:00

23 lines
394 B
Fish

# RUN: %fish %s
_tide_parent_dirs
function _terraform
_tide_decolor (_tide_item_terraform)
end
set -lx tide_terraform_icon 󱁢
set -l terraformDir (mktemp -d)
cd $terraformDir
mock terraform "workspace show" "echo default"
_terraform # CHECK:
mkdir .terraform
_terraform # CHECK:
mock terraform "workspace show" "echo test"
_terraform # CHECK: 󱁢 test
command rm -r $terraformDir