An open API service indexing awesome lists of open source software.

https://github.com/tfbar/web


https://github.com/tfbar/web

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Terraform Progress Bar
#### * No installation required

### Demo

![](https://github.com/tfbar/web/blob/main/npx-tfh.gif)

#### 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