https://github.com/pecigonzalo/autotfenv
https://github.com/pecigonzalo/autotfenv
terraform tfenv wip
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pecigonzalo/autotfenv
- Owner: pecigonzalo
- Created: 2018-06-01T10:27:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T09:18:54.000Z (over 2 years ago)
- Last Synced: 2025-03-01T17:48:24.633Z (over 1 year ago)
- Topics: terraform, tfenv, wip
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# AutoTFEnv
Helper tool to be used with [tfenv](https://github.com/kamatama41/tfenv), adds terraform version autoloading functionality on ZSH.
## How it works?
When you enter a directory containing `.tf` files, it will detect if there is a explicit version set, and load prompt you to load it.
## Installation
Install python helper using `pip` or `pipsi`
```
pipenv install -e git+git@github.com:pecigonzalo/autotfenv.git
```
Now you can run `autotfenv` on any folder to check if the current `tfenv` version if the same as the one declared on the `.tf` files.
I have included a ZSH autoloader helper (`bin/autload.zsh`), that you can use to automatically check on folder change if there are `.tf` files, and if there are, trigger `autotfenv`.
To install it, simply source the file directly or using any ZSH framework.
EG:
```
zplug "github.com:pecigonzalo/autotfenv", use:"bin/autoload.zsh"
```
## Development