你好,
首先,我只想说我喜欢 tfenv 并感谢您花时间创建它。
我在 AWS CodeBuild 中使用 tfenv 并且拥有与 Terraform 相同的“-no-color”选项会很好,因为现在命令输出如下所示:
·[0;32m[INFO] Installing Terraform v0.12.3·[0;39m
·[0;32m[INFO] Downloading release tarball from https://releases.hashicorp.com/terraform/0.12.3/terraform_0.12.3_linux_amd64.zip·[0;39m
0.6%
################################### 48.9%
######################################################################## 100.0%
·[0;32m[INFO] Downloading SHA hash file from https://releases.hashicorp.com/terraform/0.12.3/terraform_0.12.3_SHA256SUMS·[0;39m
tfenv: tfenv-install: ·[0;33m[WARN] No keybase install found, skipping OpenPGP signature verification·[0;39m
Archive: tfenv_download.GiiMAo/terraform_0.12.3_linux_amd64.zip
inflating: /************/.tfenv/versions/0.12.3/terraform
·[0;32m[INFO] Installation of terraform v0.12.3 successful·[0;39m
·[0;32m[INFO] Switching to v0.12.3·[0;39m
·[0;32m[INFO] Switching completed·[0;39m
谢谢,
斯坦
这是一个很好的问题,我会看看我是否能找到时间。 可能是我将其合并到日志记录机制的重新架构中。
请参阅master
v2.0.0-alpha1。 这对你有用吗?
你好,
它有效,谢谢。
对于关注此问题的人来说,值得一提的一件事是,如果有人在 MacOS 上使用默认 bash,它将无法正常工作。
bash 字典声明随 bash 版本 4 一起提供,MacOS 默认随版本 3 一起提供。
干杯,
斯坦
是的,根据 CHANGELOG,2.0.0-alpha1 取决于 bash4。 我考虑过编写一个 bash3 关联数组包装器,但这需要付出很多努力。
这也已修复,现在支持 bash3