mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
20 lines
329 B
Fish
20 lines
329 B
Fish
|
# RUN: %fish %s
|
||
|
|
||
|
function _terraform
|
||
|
_tide_decolor (_tide_item_terraform)
|
||
|
end
|
||
|
|
||
|
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
|
||
|
|
||
|
rm -r $terraformDir
|