Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Yethal/nu_plugin_hcl
A Hashicorp Configuration Language plugin for nushell
https://github.com/Yethal/nu_plugin_hcl
Last synced: about 1 month ago
JSON representation
A Hashicorp Configuration Language plugin for nushell
- Host: GitHub
- URL: https://github.com/Yethal/nu_plugin_hcl
- Owner: Yethal
- License: mit
- Created: 2023-05-16T13:19:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-21T09:27:29.000Z (4 months ago)
- Last Synced: 2024-09-21T13:50:31.124Z (3 months ago)
- Language: Rust
- Size: 44.9 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nu - nu_plugin_hcl
- awesome-tf - nu_plugin_hcl - HCL parser plugin for [Nushell](https://github.com/nushell/nushell) (Libraries / IDE)
README
# nu_plugin_hcl
[nushell]: https://www.nushell.sh/
[plugin]: https://www.nushell.sh/contributor-book/plugins.html
[structured types]: https://www.nushell.sh/book/types_of_data.htmlThis is a [nushell] [plugin] to parse Hashicorp Configuration Language files into `nu` structured types.
# Installing
[add the plugin]: https://www.nushell.sh/book/plugins.html#adding-a-plugin
[`register`]: https://www.nushell.sh/book/commands/register.htmlTo [add the plugin] permanently, just install it and call [`register`] on it:
## Using Cargo
```bash
cargo install nu_plugin_hcl
register ~/.cargo/bin/nu_plugin_hcl
```## Usage
```bash
open -r main.tf | from hcl | first 10
╭──────────┬──────────────────╮
│ provider │ {record 1 field} │
│ resource │ {record 1 field} │
╰──────────┴──────────────────╯
```