mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 12:03:48 +03:00
3787c725f7
* Add Terraform item * Do not show default workspace in Terraform prompt * Add terraform to tide_right_prompt_items * Add terraform to _tide_remove_unusable_items * Fix test, use read, format Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
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
|