Home

Awesome

nu_plugin_hcl

This is a nushell plugin to parse Hashicorp Configuration Language files into nu structured types.

Installing

To add the plugin permanently, just install it and call register on it:

Using Cargo

cargo install nu_plugin_hcl
register ~/.cargo/bin/nu_plugin_hcl

Usage

open -r main.tf | from hcl | first 10
╭──────────┬──────────────────╮
│ provider │ {record 1 field} │
│ resource │ {record 1 field} │
╰──────────┴──────────────────╯