https://github.com/tfbar/web
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tfbar/web
- Owner: tfbar
- License: other
- Created: 2023-03-13T19:47:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T16:22:40.000Z (over 2 years ago)
- Last Synced: 2024-11-27T10:36:00.962Z (10 months ago)
- Language: JavaScript
- Size: 19.7 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - tfbar/web - (JavaScript)
README
# Terraform Progress Bar
#### * No installation required### Demo

#### Also check out [Tree View Demo](https://www.youtube.com/watch?v=orrhT1PQYsw)
## Prerequisite
* Install [Node.js](https://nodejs.org/)## How to use
Pipe output to npx. For example:
Use:
```
$ terraform plan | npx github:tfbar/web
```
Instead of
```
$ terraform plan
```
And see the progress bar.## Notes
* You may also use npm package if preferred
```
$ terraform plan | npx tfh@latest
```
* On windows machine, prefer cmd over powershell for better experience### Permenant Installation
#### In linux / mac
Add the following line to your favorite shell config file: .zshrc, .bashrc, .bash_profile.
```
$ iterraform(){ terraform "$@" | npx github:tfbar/web }
```
Then use like this:
```
$ iterraform plan
```#### In windows cmd
* Create a batch file named *iterraform.bat* and paste the following into it
```
@ECHO OFF
terraform %* | npx github:tfbar/web
```
* Add *iterraform.bat* to [system path](https://www.mathworks.com/matlabcentral/answers/94933-how-do-i-edit-my-system-path-in-windows)Then use it like:
```
$ iterraform.bat apply
```## Contributing
Pull requests are welcome. Feel free to...
- Revise documentation
- Add new features
- Fix bugs
- Suggest improvements## License
[License](https://htmlpreview.github.io/?https://github.com/oferca/tf/blob/main/LICENSE) CC BY-NC-ND 4.0![]()